Interface ChannelReceiver<E>

  • Type Parameters:
    E - element type

    public interface ChannelReceiver<E>
    The receiver interface is implemented by end users in order to receiver data from the channel.
    • Method Detail

      • accept

        void accept​(E element)
        New elements are passed into this method. NB: the element is only readable for the lifecycle of this callback.
        Parameters:
        element - the element which is being accepted by the consumer.