Package org.jctools.channels
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(E element)New elements are passed into this method.
-
-
-
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.
-
-