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 Summary

    Modifier and Type
    Method
    Description
    void
    accept(E element)
    New elements are passed into this method.
  • Method Details

    • 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.