public interface MessagePassingQueue<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
MessagePassingQueue.Consumer<T> |
static interface |
MessagePassingQueue.ExitCondition |
static interface |
MessagePassingQueue.Supplier<T> |
static interface |
MessagePassingQueue.WaitStrategy |
Modifier and Type | Field and Description |
---|---|
static int |
UNBOUNDED_CAPACITY |
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
void |
clear() |
int |
drain(MessagePassingQueue.Consumer<T> c) |
int |
drain(MessagePassingQueue.Consumer<T> c,
int limit) |
void |
drain(MessagePassingQueue.Consumer<T> c,
MessagePassingQueue.WaitStrategy wait,
MessagePassingQueue.ExitCondition exit) |
int |
fill(MessagePassingQueue.Supplier<T> s) |
int |
fill(MessagePassingQueue.Supplier<T> s,
int limit) |
void |
fill(MessagePassingQueue.Supplier<T> s,
MessagePassingQueue.WaitStrategy wait,
MessagePassingQueue.ExitCondition exit) |
boolean |
isEmpty() |
boolean |
offer(T e) |
T |
peek() |
T |
poll() |
boolean |
relaxedOffer(T e) |
T |
relaxedPeek() |
T |
relaxedPoll() |
int |
size() |
static final int UNBOUNDED_CAPACITY
boolean offer(T e)
T poll()
T peek()
int size()
void clear()
boolean isEmpty()
int capacity()
boolean relaxedOffer(T e)
T relaxedPoll()
T relaxedPeek()
int drain(MessagePassingQueue.Consumer<T> c)
int fill(MessagePassingQueue.Supplier<T> s)
int drain(MessagePassingQueue.Consumer<T> c, int limit)
int fill(MessagePassingQueue.Supplier<T> s, int limit)
void drain(MessagePassingQueue.Consumer<T> c, MessagePassingQueue.WaitStrategy wait, MessagePassingQueue.ExitCondition exit)
void fill(MessagePassingQueue.Supplier<T> s, MessagePassingQueue.WaitStrategy wait, MessagePassingQueue.ExitCondition exit)