Package jadex.bridge
Interface IOutputConnection
-
- All Superinterfaces:
IConnection
- All Known Implementing Classes:
OutputConnection
,ServiceOutputConnection
,ServiceOutputConnectionProxy
public interface IOutputConnection extends IConnection
Interface for output connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)
Write all data from input stream to the connection.-
Methods inherited from interface jadex.bridge.IConnection
close, getConnectionId, getInitiator, getNonFunctionalProperties, getParticipant
-
-
-
-
Method Detail
-
write
IFuture<java.lang.Void> write(byte[] data)
Write the content to the stream.- Parameters:
data
- The data.
-
flush
void flush()
Flush the data.
-
waitForReady
IFuture<java.lang.Integer> waitForReady()
Wait until the connection is ready for the next write.- Returns:
- Calls future when next data can be written. Provides a value of how much data should be given to the connection for best performance.
-
writeFromInputStream
ISubscriptionIntermediateFuture<java.lang.Long> writeFromInputStream(java.io.InputStream is, IExternalAccess component)
Write all data from input stream to the connection. The result is an intermediate future that reports back the size that was written. It can also be used to terminate sending.- Parameters:
is
- The input stream.
-
-