public class XodusBlockingQueue<T> extends XodusQueue<T> implements BlockingQueue<T>
| Constructor and Description |
|---|
XodusBlockingQueue(jetbrains.exodus.log.LogConfig logConfig,
jetbrains.exodus.env.EnvironmentConfig environmentConfig,
XodusQueueSerializer<T> serializer,
long capacity) |
XodusBlockingQueue(jetbrains.exodus.log.LogConfig logConfig,
jetbrains.exodus.env.EnvironmentConfig environmentConfig,
XodusQueueSerializer<T> serializer,
long capacity,
boolean fair) |
XodusBlockingQueue(String databaseDir,
Class<T> entryClass,
long capacity) |
XodusBlockingQueue(String databaseDir,
Class<T> entryClass,
long capacity,
boolean fair) |
XodusBlockingQueue(String databaseDir,
XodusQueueSerializer<T> serializer,
long capacity) |
XodusBlockingQueue(String databaseDir,
XodusQueueSerializer<T> serializer,
long capacity,
boolean fair) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
int |
drainTo(Collection<? super T> c) |
int |
drainTo(Collection<? super T> c,
int maxElements) |
boolean |
offer(T e) |
boolean |
offer(T e,
long timeout,
TimeUnit unit) |
T |
poll() |
T |
poll(long timeout,
TimeUnit unit) |
void |
put(T e) |
int |
remainingCapacity() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
take() |
close, contains, containsAll, isEmpty, iterator, peek, size, sizeLong, toArray, toArrayadd, element, removetoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, containscontainsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArraypublic XodusBlockingQueue(jetbrains.exodus.log.LogConfig logConfig,
jetbrains.exodus.env.EnvironmentConfig environmentConfig,
XodusQueueSerializer<T> serializer,
long capacity)
public XodusBlockingQueue(String databaseDir, Class<T> entryClass, long capacity)
public XodusBlockingQueue(String databaseDir, XodusQueueSerializer<T> serializer, long capacity)
public XodusBlockingQueue(jetbrains.exodus.log.LogConfig logConfig,
jetbrains.exodus.env.EnvironmentConfig environmentConfig,
XodusQueueSerializer<T> serializer,
long capacity,
boolean fair)
public XodusBlockingQueue(String databaseDir, Class<T> entryClass, long capacity, boolean fair)
public XodusBlockingQueue(String databaseDir, XodusQueueSerializer<T> serializer, long capacity, boolean fair)
public void put(T e) throws InterruptedException
put in interface BlockingQueue<T>InterruptedExceptionpublic boolean offer(T e, long timeout, TimeUnit unit) throws InterruptedException
offer in interface BlockingQueue<T>InterruptedExceptionpublic boolean offer(T e)
offer in interface BlockingQueue<T>offer in interface Queue<T>offer in class XodusQueue<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in class XodusQueue<T>public T poll()
public T take() throws InterruptedException
take in interface BlockingQueue<T>InterruptedExceptionpublic T poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<T>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueue<T>public int drainTo(Collection<? super T> c)
drainTo in interface BlockingQueue<T>public int drainTo(Collection<? super T> c, int maxElements)
drainTo in interface BlockingQueue<T>drainTo in class XodusQueue<T>public void clear()
clear in interface Collection<T>clear in class XodusQueue<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface BlockingQueue<T>remove in class XodusQueue<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>removeAll in class XodusQueue<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>retainAll in class XodusQueue<T>Copyright © 2018. All rights reserved.