E
- element typepublic interface Channel<E>
Modifier and Type | Method and Description |
---|---|
ChannelConsumer |
consumer(ChannelReceiver<E> callback) |
boolean |
isEmpty() |
int |
maximumCapacity() |
ChannelProducer<E> |
producer() |
int |
requestedCapacity() |
int |
size()
Get the number of elements in the queue.
|
ChannelConsumer consumer(ChannelReceiver<E> callback)
callback
- the accept function for this consumerChannelProducer<E> producer()
int size()
int maximumCapacity()
int requestedCapacity()
boolean isEmpty()