public class RingBlockerBasic extends java.lang.Object implements RingBlocker
| Constructor and Description |
|---|
RingBlockerBasic() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPollWait() |
long |
nextOfferSequence() |
long |
nextPollSequence() |
boolean |
offerWait(long sequence,
long timeout,
java.util.concurrent.TimeUnit unit) |
void |
offerWake() |
boolean |
pollWait(long sequence,
long timeout,
java.util.concurrent.TimeUnit unit) |
void |
pollWake() |
boolean |
wake() |
void |
wakeAll() |
public final long nextOfferSequence()
nextOfferSequence in interface RingBlockerpublic final boolean offerWait(long sequence,
long timeout,
java.util.concurrent.TimeUnit unit)
offerWait in interface RingBlockerpublic final void offerWake()
offerWake in interface RingBlockerpublic final boolean wake()
wake in interface RingBlockerpublic final void wakeAll()
wakeAll in interface RingBlockerpublic final long nextPollSequence()
nextPollSequence in interface RingBlockerpublic boolean pollWait(long sequence,
long timeout,
java.util.concurrent.TimeUnit unit)
pollWait in interface RingBlockerpublic final boolean isPollWait()
isPollWait in interface RingBlockerpublic void pollWake()
pollWake in interface RingBlocker