public 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) |
T |
take(WaitStrategy.Takeable<T> t) |
public T take(WaitStrategy.Takeable<T> t) throws java.lang.InterruptedException
take in interface WaitStrategy<T>java.lang.InterruptedExceptionpublic boolean offer(WaitStrategy.Offerable o) throws java.lang.InterruptedException
offer in interface WaitStrategy<T>java.lang.InterruptedException