public class fRingValueQueueOrig<T>
extends java.lang.Object
Constructor and Description |
---|
fRingValueQueueOrig(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
getCapacity() |
int |
getHead() |
int |
getHeadAlloc() |
int |
getSize() |
int |
getTail() |
int |
getTailAlloc() |
T |
getValue(int index) |
boolean |
isEmpty() |
int |
nextIndex(int index) |
boolean |
offer(T value) |
boolean |
offer(T value,
long expireTime) |
T |
peek() |
T |
poll() |
int |
prevIndex(int index) |
boolean |
put(T value) |
public final boolean isEmpty()
public final int getSize()
public final int getCapacity()
public final int getHead()
public final int getHeadAlloc()
public final int getTail()
public final int getTailAlloc()
public final boolean offer(T value)
public final boolean put(T value)
public final boolean offer(T value, long expireTime)
public final T peek()
public final T poll()
public T getValue(int index)
public int nextIndex(int index)
public int prevIndex(int index)