public final class RingValueQueue<M> extends AbstractActorQueue<M>
| Constructor and Description |
|---|
RingValueQueue(int capacity) |
RingValueQueue(int capacity,
RingBlocker blocker) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeWrite() |
int |
getCapacity() |
long |
getHead() |
long |
getHeadAlloc() |
int |
getOfferReserve() |
TaskWorker |
getOfferTask() |
long |
getTail() |
M |
getValue(long ptr) |
boolean |
isEmpty() |
boolean |
isWriteClosed() |
boolean |
offer(M value,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
offer(M value,
long timeout,
java.util.concurrent.TimeUnit unit,
int reservedSpace) |
M |
peek() |
M |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
int |
remainingCapacity() |
int |
size() |
java.lang.String |
toString() |
void |
wake() |
add, addAll, clear, contains, containsAll, drainTo, drainTo, element, iterator, offer, poll, put, remove, remove, removeAll, retainAll, take, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic RingValueQueue(int capacity)
public RingValueQueue(int capacity,
RingBlocker blocker)
public int getCapacity()
public int getOfferReserve()
public int remainingCapacity()
remainingCapacity in interface java.util.concurrent.BlockingQueue<M>remainingCapacity in class AbstractActorQueue<M>public final boolean isEmpty()
isEmpty in interface java.util.Collection<M>isEmpty in class AbstractActorQueue<M>public final int size()
size in interface java.util.Collection<M>size in class AbstractActorQueue<M>public final long getHead()
public final long getHeadAlloc()
public final long getTail()
public TaskWorker getOfferTask()
public final M getValue(long ptr)
public final boolean offer(M value, long timeout, java.util.concurrent.TimeUnit unit)
offer in interface java.util.concurrent.BlockingQueue<M>offer in class AbstractActorQueue<M>public final boolean offer(M value, long timeout, java.util.concurrent.TimeUnit unit, int reservedSpace)
offer in interface ActorQueue<M>offer in class AbstractActorQueue<M>public final M poll(long timeout, java.util.concurrent.TimeUnit unit)
poll in interface java.util.concurrent.BlockingQueue<M>poll in class AbstractActorQueue<M>public final M peek()
peek in interface java.util.Queue<M>peek in class AbstractActorQueue<M>public void wake()
public final boolean isWriteClosed()
public final void closeWrite()
public final void close()
public java.lang.String toString()
toString in class AbstractActorQueue<M>