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, setInited
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionId, getInitiator, getNonFunctionalProperties, getParticipant
public OutputConnection(IComponentIdentifier sender, IComponentIdentifier receiver, int id, boolean initiator, IOutputConnectionHandler ch)
public IFuture<java.lang.Void> write(byte[] data)
write
in interface IOutputConnection
data
- The data.public void flush()
flush
in interface IOutputConnection
public IFuture<java.lang.Integer> waitForReady()
waitForReady
in interface IOutputConnection
public void close()
close
in interface IConnection
close
in class AbstractConnection
public ISubscriptionIntermediateFuture<java.lang.Long> writeFromInputStream(java.io.InputStream is, IExternalAccess component)
writeFromInputStream
in interface IOutputConnection
is
- The input stream.