T - Data type of elements in the async.Queuepublic class YieldWait<T> extends java.lang.Object implements WaitStrategy<T>
WaitStrategy.Offerable, WaitStrategy.Takeable<T>| Constructor and Description |
|---|
YieldWait() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(WaitStrategy.Offerable o)
Push data into a recievable type using the provided offerable
|
T |
take(WaitStrategy.Takeable<T> t)
Attempt to take from Takeable
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdirect, exponentialBackOff, noWaitRetry, spinWait, yieldWaitpublic T take(WaitStrategy.Takeable<T> t) throws java.lang.InterruptedException
WaitStrategytake in interface WaitStrategy<T>t - Takeable to take next data point fromjava.lang.InterruptedExceptionpublic boolean offer(WaitStrategy.Offerable o) throws java.lang.InterruptedException
WaitStrategyoffer in interface WaitStrategy<T>o - Offerable to push data to recievable typejava.lang.InterruptedException