public class ServiceOutputConnection extends Object implements IOutputConnection
Constructor and Description |
---|
ServiceOutputConnection()
Create a new connection.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection.
|
void |
flush()
Flush the data.
|
int |
getConnectionId()
Get the connection id.
|
IComponentIdentifier |
getInitiator()
Get the initiator.
|
IInputConnection |
getInputConnection() |
Map<String,Object> |
getNonFunctionalProperties()
Get the non-functional properties of the connection.
|
IComponentIdentifier |
getParticipant()
Get the participant.
|
IFuture<Integer> |
waitForReady()
Wait until the connection is ready for the next write.
|
IFuture<Void> |
write(byte[] data)
Write the content to the stream.
|
ISubscriptionIntermediateFuture<Long> |
writeFromInputStream(InputStream is,
IExternalAccess component)
Write all data from input stream to the connection.
|
public ServiceOutputConnection()
public IFuture<Void> write(byte[] data)
write
in interface IOutputConnection
data
- The data.public void flush()
flush
in interface IOutputConnection
public IFuture<Integer> waitForReady()
waitForReady
in interface IOutputConnection
public void close()
close
in interface IConnection
public int getConnectionId()
IConnection
getConnectionId
in interface IConnection
public IComponentIdentifier getInitiator()
IConnection
getInitiator
in interface IConnection
public IComponentIdentifier getParticipant()
IConnection
getParticipant
in interface IConnection
public Map<String,Object> getNonFunctionalProperties()
getNonFunctionalProperties
in interface IConnection
public IInputConnection getInputConnection()
public ISubscriptionIntermediateFuture<Long> writeFromInputStream(InputStream is, IExternalAccess component)
writeFromInputStream
in interface IOutputConnection
is
- The input stream.agen
- Copyright © 2013. All Rights Reserved.