org.qi4j.io
Interface Receiver<T,ReceiverThrowableType extends java.lang.Throwable>


public interface Receiver<T,ReceiverThrowableType extends java.lang.Throwable>

Receiver of items during a specific transfer from an Input to an Output.


Method Summary
 void receive(T item)
          Receive a single item of the given type.
 

Method Detail

receive

void receive(T item)
             throws ReceiverThrowableType extends java.lang.Throwable
Receive a single item of the given type. The receiver should process it and optionally throw an exception if it fails.

Parameters:
item -
Throws:
ReceiverThrowableType
ReceiverThrowableType extends java.lang.Throwable