public interface WorkQueue
| Modifier and Type | Method and Description |
|---|---|
void |
awaitEmpty()
Blocks the calling thread until the queue is empty.
|
boolean |
isStarted() |
WorkUnit |
poll(long timeout,
TimeUnit unit) |
void |
put(WorkUnit workUnit) |
void |
start() |
void |
stop() |
void start()
void stop()
boolean isStarted()
void put(WorkUnit workUnit) throws InterruptedException
InterruptedExceptionWorkUnit poll(long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionvoid awaitEmpty()
Copyright © 2018. All rights reserved.