public class ServiceOutputConnectionProxy extends Object implements IOutputConnection
Constructor and Description |
---|
ServiceOutputConnectionProxy() |
ServiceOutputConnectionProxy(ServiceInputConnection con) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection.
|
void |
flush()
Flush the data.
|
int |
getConnectionId()
Get the connectionid.
|
IComponentIdentifier |
getInitiator()
Get the initiator id.
|
Map<String,Object> |
getNonFunctionalProperties()
Get the non-functional properties of the connection.
|
IComponentIdentifier |
getParticipant()
Get the participant id.
|
void |
setConnectionId(int conid)
Set the connectionid.
|
void |
setInitiator(IComponentIdentifier initiator)
Set the initiator.
|
void |
setInputConnection(IInputConnection icon) |
void |
setNonFunctionalProperties(Map<String,Object> nonfunc)
Set the non-functional properties of the connection.
|
void |
setParticipant(IComponentIdentifier participant)
Set 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)
Do write all data from the input stream.
|
public ServiceOutputConnectionProxy()
public ServiceOutputConnectionProxy(ServiceInputConnection con)
public void setInputConnection(IInputConnection icon)
public int getConnectionId()
getConnectionId
in interface IConnection
public void setConnectionId(int conid)
connectionid
- The connectionid to set.public IComponentIdentifier getInitiator()
getInitiator
in interface IConnection
public void setInitiator(IComponentIdentifier initiator)
initiator
- The initiator to set.public IComponentIdentifier getParticipant()
getParticipant
in interface IConnection
public void setParticipant(IComponentIdentifier participant)
participant
- The participant to set.public Map<String,Object> getNonFunctionalProperties()
getNonFunctionalProperties
in interface IConnection
public void setNonFunctionalProperties(Map<String,Object> nonfunc)
nonfunc
- The properties.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 ISubscriptionIntermediateFuture<Long> writeFromInputStream(InputStream is, IExternalAccess component)
writeFromInputStream
in interface IOutputConnection
is
- The input stream.Copyright © 2013. All Rights Reserved.