public interface WaitStrategy<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
WaitStrategy.Offerable |
static interface |
WaitStrategy.Takeable<T> |
Modifier and Type | Method and Description |
---|---|
static <T> DirectWaitStrategy<T> |
direct() |
static <T> ExponentialBackofWaitStrategy<T> |
exponentialBackOff() |
static <T> NoWaitRetry<T> |
noWaitRetry() |
boolean |
offer(WaitStrategy.Offerable o) |
static <T> SpinWait<T> |
spinWait() |
T |
take(WaitStrategy.Takeable<T> t) |
static <T> YieldWait<T> |
yieldWait() |
T take(WaitStrategy.Takeable<T> t) throws java.lang.InterruptedException
java.lang.InterruptedException
boolean offer(WaitStrategy.Offerable o) throws java.lang.InterruptedException
java.lang.InterruptedException
static <T> YieldWait<T> yieldWait()
static <T> SpinWait<T> spinWait()
static <T> NoWaitRetry<T> noWaitRetry()
static <T> ExponentialBackofWaitStrategy<T> exponentialBackOff()
static <T> DirectWaitStrategy<T> direct()