Package org.jctools.channels
Interface ChannelConsumer
- All Known Implementing Classes:
MpscChannelConsumer
,SpscChannelConsumer
public interface ChannelConsumer
The consumer is the object which controls the reading of messages from a
channel. Each consumer should only be assigned to a single thread.
-
Method Summary
-
Method Details
-
read
boolean read()Read a message from the channel.- Returns:
- true if a message was read, false otherwise
-