| Constructor and Description |
|---|
BlockingWorkQueue() |
BlockingWorkQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
E |
poll(long timeout,
TimeUnit unit) |
public BlockingWorkQueue()
public BlockingWorkQueue(int capacity)
public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer in interface WorkQueue<E>InterruptedExceptionpublic E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface WorkQueue<E>InterruptedExceptionCopyright © 2019. All rights reserved.