Codota Logo
PListEntry.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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 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 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 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

  • Finding current android device location
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Kernel (java.awt.image)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now