public static class RepUtils.ExceptionAwareBlockingQueue<T> extends LinkedBlockingQueue<T>
LinkedBlockingQueue, but provides a pollOrException() method that should be used instead of poll(),
so that callers don't have to treat exception cases specially.| Constructor and Description |
|---|
ExceptionAwareBlockingQueue(EnvironmentImpl envImpl,
T dummyValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
poll(long timeout,
TimeUnit unit)
Deprecated.
|
T |
pollOrException(long timeout,
TimeUnit unit) |
void |
releasePoll(Exception e) |
clear, contains, drainTo, drainTo, iterator, offer, offer, peek, poll, put, remainingCapacity, remove, size, spliterator, take, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic ExceptionAwareBlockingQueue(EnvironmentImpl envImpl, T dummyValue)
public void releasePoll(Exception e)
public T pollOrException(long timeout, TimeUnit unit) throws InterruptedException, DatabaseException
@Deprecated public T poll(long timeout, TimeUnit unit)
pollOrException(long, java.util.concurrent.TimeUnit) instead.poll in interface BlockingQueue<T>poll in class LinkedBlockingQueue<T>Copyright © 2024. All rights reserved.