public class OutputConnection extends AbstractConnection implements IOutputConnection
ch, closed, closing, id, ini, inited, initiator, input, participant| Constructor and Description | 
|---|
| OutputConnection(IComponentIdentifier sender,
                IComponentIdentifier receiver,
                int id,
                boolean initiator,
                IOutputConnectionHandler ch)Create a new connection. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close the connection. | 
| void | flush()Flush the data. | 
| IFuture<java.lang.Integer> | waitForReady()Wait until the connection is ready for the next write. | 
| IFuture<java.lang.Void> | write(byte[] data)Write the content to the stream. | 
| ISubscriptionIntermediateFuture<java.lang.Long> | writeFromInputStream(java.io.InputStream is,
                    IExternalAccess component)Do write all data from the input stream. | 
getConnectionHandler, getConnectionId, getInitiator, getNonFunctionalProperties, getParticipant, isClosed, isClosing, isInited, isInitiatorSide, isInputConnection, setClosed, setClosing, setInitedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionId, getInitiator, getNonFunctionalProperties, getParticipantpublic OutputConnection(IComponentIdentifier sender, IComponentIdentifier receiver, int id, boolean initiator, IOutputConnectionHandler ch)
public IFuture<java.lang.Void> write(byte[] data)
write in interface IOutputConnectiondata - The data.public void flush()
flush in interface IOutputConnectionpublic IFuture<java.lang.Integer> waitForReady()
waitForReady in interface IOutputConnectionpublic void close()
close in interface IConnectionclose in class AbstractConnectionpublic ISubscriptionIntermediateFuture<java.lang.Long> writeFromInputStream(java.io.InputStream is, IExternalAccess component)
writeFromInputStream in interface IOutputConnectionis - The input stream.