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 Detail

      • read

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