public final class ActorQueue<T extends RingItem> extends java.lang.Object implements ActorQueuePreallocApi<T>
Constructor and Description |
---|
ActorQueue(int capacity,
RingItemFactory<T> itemFactory,
ActorProcessor<? super T>... processors) |
Modifier and Type | Method and Description |
---|---|
void |
finishOffer(T item) |
int |
getAvailable() |
int |
getSize() |
java.lang.String |
getWorkerState() |
boolean |
isEmpty() |
T |
startOffer(boolean isWait) |
java.lang.String |
toString() |
void |
wake() |
public ActorQueue(int capacity, RingItemFactory<T> itemFactory, ActorProcessor<? super T>... processors)
public final boolean isEmpty()
isEmpty
in interface ActorQueuePreallocApi<T extends RingItem>
public final int getSize()
getSize
in interface ActorQueuePreallocApi<T extends RingItem>
public final int getAvailable()
getAvailable
in interface ActorQueuePreallocApi<T extends RingItem>
public final java.lang.String getWorkerState()
public final void wake()
wake
in interface ActorQueuePreallocApi<T extends RingItem>
public final T startOffer(boolean isWait)
startOffer
in interface ActorQueuePreallocApi<T extends RingItem>
public final void finishOffer(T item)
finishOffer
in interface ActorQueuePreallocApi<T extends RingItem>
public java.lang.String toString()
toString
in class java.lang.Object