public class RingBlockerBasic extends java.lang.Object implements RingBlocker
Constructor and Description |
---|
RingBlockerBasic() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isOfferWait() |
boolean |
isPollWait() |
boolean |
offerWait(long tail,
java.util.concurrent.atomic.AtomicLong tailRef,
int reservedSpace,
long timeout,
java.util.concurrent.TimeUnit unit) |
void |
offerWake() |
boolean |
pollWait(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
pollWake() |
void |
wake() |
public final boolean offerWait(long tail, java.util.concurrent.atomic.AtomicLong tailRef, int reservedSpace, long timeout, java.util.concurrent.TimeUnit unit)
offerWait
in interface RingBlocker
public final boolean isOfferWait()
isOfferWait
in interface RingBlocker
public final void offerWake()
offerWake
in interface RingBlocker
public final void wake()
wake
in interface TaskWorker
public final boolean pollWait(long timeout, java.util.concurrent.TimeUnit unit)
pollWait
in interface RingBlocker
public final boolean isPollWait()
isPollWait
in interface RingBlocker
public final void pollWake()
pollWake
in interface RingBlocker
public final void close()
close
in interface RingBlocker