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

    Modifier and Type
    Method
    Description
    boolean
    Read a message from the channel.
  • Method Details

    • read

      boolean read()
      Read a message from the channel.
      Returns:
      true if a message was read, false otherwise