public class TimeoutBlockingQueue<T> extends PausableBlockingQueue<T> implements TimeoutBlockingQueue4<T>
_lock, _queue, _stopped| Constructor and Description |
|---|
TimeoutBlockingQueue(long maxTimeToRemainPaused) |
| Modifier and Type | Method and Description |
|---|---|
void |
check() |
boolean |
pause()
Pauses the queue, making calls to
Queue4.next() block
until PausableBlockingQueue4.resume() is called. |
void |
reset() |
isPaused, resume, tryNext, unsafeWaitForNextadd, drainTo, hasNext, iterator, next, next, nextMatching, stop, unsafeWaitForNext, waitForNext, waitForNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPaused, resume, tryNextdrainTo, next, stoppublic boolean pause()
PausableBlockingQueue4
Pauses the queue, making calls to Queue4.next() block
until PausableBlockingQueue4.resume() is called.
pause in interface PausableBlockingQueue4<T>pause in class PausableBlockingQueue<T>public void check()
check in interface TimeoutBlockingQueue4<T>public void reset()
reset in interface TimeoutBlockingQueue4<T>