Class MpscChannel<E>
java.lang.Object
org.jctools.channels.mpsc.MpscChannel<E>
- All Implemented Interfaces:
Channel<E>
-
Constructor Summary
ConstructorsConstructorDescriptionMpscChannel(ByteBuffer buffer, int requestedCapacity, Class<E> type) This is to be used for an IPC queue with the direct buffer used being a memory mapped file. -
Method Summary
-
Constructor Details
-
MpscChannel
This is to be used for an IPC queue with the direct buffer used being a memory mapped file.- Parameters:
buffer-requestedCapacity-
-
-
Method Details
-
consumer
-
producer
-
size
-
maximumCapacity
public int maximumCapacity()- Specified by:
maximumCapacityin interfaceChannel<E>- Returns:
- the maximum number of elements that can fit in this channel.
-
requestedCapacity
public int requestedCapacity()- Specified by:
requestedCapacityin interfaceChannel<E>- Returns:
- The requested maximum number of elements that can fit in this channel.
-
isEmpty
-