E
- public class StoredQueue<E extends Serializable> extends AbstractQueue<E>
Modifier and Type | Field and Description |
---|---|
protected E |
peekItem |
protected com.sleepycat.je.Database |
queueDb |
protected com.sleepycat.collections.StoredSortedMap<Long,E> |
queueMap |
protected AtomicLong |
tailIndex |
Constructor and Description |
---|
StoredQueue(com.sleepycat.je.Database db,
Class<E> clsOrNull,
com.sleepycat.bind.serial.StoredClassCatalog classCatalog)
Create a StoredQueue backed by the given Database.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static BdbModule.BdbConfig |
databaseConfig()
A suitable DatabaseConfig for the Database backing a StoredQueue.
|
void |
hookupDatabase(com.sleepycat.je.Database db,
Class<E> clsOrNull,
com.sleepycat.bind.serial.StoredClassCatalog classCatalog) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
offer(E o) |
E |
peek() |
E |
poll() |
int |
size() |
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray
protected transient com.sleepycat.collections.StoredSortedMap<Long,E extends Serializable> queueMap
protected transient com.sleepycat.je.Database queueDb
protected AtomicLong tailIndex
protected transient volatile E extends Serializable peekItem
public StoredQueue(com.sleepycat.je.Database db, Class<E> clsOrNull, com.sleepycat.bind.serial.StoredClassCatalog classCatalog)
db
- clsOrNull
- classCatalog
- public void hookupDatabase(com.sleepycat.je.Database db, Class<E> clsOrNull, com.sleepycat.bind.serial.StoredClassCatalog classCatalog)
db
- clsOrNull
- classCatalog
- public Iterator<E> iterator()
iterator
in interface Iterable<E extends Serializable>
iterator
in interface Collection<E extends Serializable>
iterator
in class AbstractCollection<E extends Serializable>
public int size()
size
in interface Collection<E extends Serializable>
size
in class AbstractCollection<E extends Serializable>
public boolean isEmpty()
isEmpty
in interface Collection<E extends Serializable>
isEmpty
in class AbstractCollection<E extends Serializable>
public boolean offer(E o)
public E peek()
public E poll()
public static BdbModule.BdbConfig databaseConfig()
public void close()
Copyright © 2003-2014 Internet Archive. All Rights Reserved.