Tabnine Logo
PListEntry.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.activemq.store.PListEntry
constructor

Best Java code snippets using org.apache.activemq.store.PListEntry.<init> (Showing top 20 results out of 315)

origin: apache/activemq

  public PListEntry copy() {
    return new PListEntry(this.entry, this.byteSequence, locator);
  }
}
origin: apache/activemq

@Override
public PListEntry next() {
  Map.Entry<String, Location> entry = iterator.next();
  ByteSequence bs = null;
  try {
    bs = store.getPayload(entry.getValue());
  } catch (IOException unexpected) {
    NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage());
    e.initCause(unexpected);
    throw e;
  }
  return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey()));
}
origin: apache/activemq

public PListEntry getLast() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getLast(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: apache/activemq

public PListEntry getFirst() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getFirst(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: apache/activemq

public PListEntry get(final long position) throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position);
        ref.set(iterator.next());
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-broker

  public PListEntry copy() {
    return new PListEntry(this.entry, this.byteSequence, locator);
  }
}
origin: org.apache.activemq/activemq-osgi

  public PListEntry copy() {
    return new PListEntry(this.entry, this.byteSequence, locator);
  }
}
origin: org.apache.activemq/activemq-all

  public PListEntry copy() {
    return new PListEntry(this.entry, this.byteSequence, locator);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public PListEntry next() {
  Map.Entry<String, Location> entry = iterator.next();
  ByteSequence bs = null;
  try {
    bs = store.getPayload(entry.getValue());
  } catch (IOException unexpected) {
    NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage());
    e.initCause(unexpected);
    throw e;
  }
  return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey()));
}
origin: org.apache.activemq/activemq-osgi

@Override
public PListEntry next() {
  Map.Entry<String, Location> entry = iterator.next();
  ByteSequence bs = null;
  try {
    bs = store.getPayload(entry.getValue());
  } catch (IOException unexpected) {
    NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage());
    e.initCause(unexpected);
    throw e;
  }
  return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey()));
}
origin: org.apache.activemq/activemq-kahadb-store

@Override
public PListEntry next() {
  Map.Entry<String, Location> entry = iterator.next();
  ByteSequence bs = null;
  try {
    bs = store.getPayload(entry.getValue());
  } catch (IOException unexpected) {
    NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage());
    e.initCause(unexpected);
    throw e;
  }
  return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey()));
}
origin: org.apache.activemq/activemq-all

public PListEntry getFirst() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getFirst(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-all

public PListEntry getLast() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getLast(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-osgi

public PListEntry getFirst() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getFirst(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-kahadb-store

public PListEntry getFirst() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getFirst(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-osgi

public PListEntry getLast() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getLast(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-all

public PListEntry get(final long position) throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position);
        ref.set(iterator.next());
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-kahadb-store

public PListEntry getLast() throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        ref.set(getLast(tx));
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-osgi

public PListEntry get(final long position) throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position);
        ref.set(iterator.next());
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
origin: org.apache.activemq/activemq-kahadb-store

public PListEntry get(final long position) throws IOException {
  PListEntry result = null;
  final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>();
  synchronized (indexLock) {
    this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() {
      @Override
      public void execute(Transaction tx) throws IOException {
        Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position);
        ref.set(iterator.next());
      }
    });
  }
  if (ref.get() != null) {
    ByteSequence bs = this.store.getPayload(ref.get().getValue());
    result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey()));
  }
  return result;
}
org.apache.activemq.storePListEntry<init>

Popular methods of PListEntry

  • getByteSequence
  • getLocator

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • JTextField (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now