T
- public class SpinWait<T> extends java.lang.Object implements WaitStrategy<T>
WaitStrategy.Offerable, WaitStrategy.Takeable<T>
Constructor and Description |
---|
SpinWait() |
Modifier and Type | Method and Description |
---|---|
boolean |
offer(WaitStrategy.Offerable o) |
T |
take(WaitStrategy.Takeable<T> t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
direct, exponentialBackOff, noWaitRetry, spinWait, yieldWait
public T take(WaitStrategy.Takeable<T> t) throws java.lang.InterruptedException
take
in interface WaitStrategy<T>
java.lang.InterruptedException
public boolean offer(WaitStrategy.Offerable o) throws java.lang.InterruptedException
offer
in interface WaitStrategy<T>
java.lang.InterruptedException