org.qi4j.io
Interface Sender<T,SenderThrowableType extends java.lang.Throwable>
public interface Sender<T,SenderThrowableType extends java.lang.Throwable>
Sender of items for a particular transfer from an Input to an Output
Method Summary |
<ReceiverThrowableType extends java.lang.Throwable>
void |
|
sendTo(Receiver<? super T,ReceiverThrowableType> receiver)
The sender should send all items it holds to the receiver by invoking receiveItem for each item. |
sendTo
<ReceiverThrowableType extends java.lang.Throwable> void sendTo(Receiver<? super T,ReceiverThrowableType> receiver)
throws ReceiverThrowableType extends java.lang.Throwable,
SenderThrowableType extends java.lang.Throwable
- The sender should send all items it holds to the receiver by invoking receiveItem for each item.
If the receive fails it should properly close any open resources.
- Type Parameters:
ReceiverThrowableType
- - Parameters:
receiver
-
- Throws:
ReceiverThrowableType
SenderThrowableType
ReceiverThrowableType extends java.lang.Throwable