Queue.Memory| Constructor and Description |
|---|
Queue.Memory() |
| Modifier and Type | Method and Description |
|---|---|
Coordinates |
pull(int limit,
TimeUnit unit)
Pull the next available work (waits until it is available).
|
void |
push(Coordinates work)
Push new work into it.
|
public void push(@NotNull(message="work can\'t be NULL") Coordinates work)
Queue@NotNull @Loggable(value=1, limit=2147483647) public Coordinates pull(int limit, @NotNull(message="time unit can\'t be NULL") TimeUnit unit) throws InterruptedException
Queuepull in interface Queuelimit - How many time rules to wait for, maximumunit - Time unitInterruptedException - If interrupted while waitingCopyright © 2009–2014 Rultor Inc.. All rights reserved.