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


public interface Receiver<T,ReceiverThrowableType extends 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 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 Throwable