public class TunnelStream
extends java.lang.Object
| Constructor and Description |
|---|
TunnelStream(ReactorChannel reactorChannel,
TunnelStreamOpenOptions options)
Creates a consumer-side tunnel stream.
|
TunnelStream(ReactorChannel reactorChannel,
TunnelStreamRequestEvent event,
TunnelStreamAcceptOptions options)
Creates a provider-side tunnel stream.
|
| Modifier and Type | Method and Description |
|---|---|
ClassOfService |
classOfService()
The class of service of the tunnel stream.
|
int |
close(boolean finalStatusEvent,
ReactorErrorInfo errorInfo)
Closes the tunnel stream.
|
TunnelStreamDefaultMsgCallback |
defaultMsgCallback()
The TunnelStreamDefaultMsgCallback of the TunnelStream.
|
int |
domainType()
The domain type of the tunnel stream.
|
com.thomsonreuters.upa.transport.TransportBuffer |
getBuffer(int size,
ReactorErrorInfo errorInfo)
Gets a buffer from the TunnelStream for writing a message.
|
int |
guaranteedOutputBuffers()
The number of guaranteed output buffers that will be available
for the tunnel stream.
|
boolean |
isProvider()
Returns whether or not this is a provider tunnel stream.
|
java.lang.String |
name()
The name of the TunnelStream.
|
TunnelStreamQueueMsgCallback |
queueMsgCallback()
The QueueMsgCallback of the TunnelStream.
|
ReactorChannel |
reactorChannel()
The reactor channel associated with the tunnel stream.
|
int |
releaseBuffer(com.thomsonreuters.upa.transport.TransportBuffer buffer,
ReactorErrorInfo errorInfo)
Returns an unwritten buffer to the TunnelStream.
|
int |
serviceId()
The service identifier of the tunnel stream.
|
com.thomsonreuters.upa.codec.State |
state()
The current known state of the tunnel stream, as indicated by the last
received response.
|
TunnelStreamStatusEventCallback |
statusEventCallback()
The TunnelStreamStatusEventCallback of the TunnelStream.
|
int |
streamId()
The stream id of the tunnel stream.
|
int |
submit(MsgBase rdmMsg,
ReactorErrorInfo errorInfo)
Sends an RDM message to the tunnel stream.
|
int |
submit(com.thomsonreuters.upa.codec.Msg msg,
ReactorErrorInfo errorInfo)
Sends a message to the tunnel stream.
|
int |
submit(com.thomsonreuters.upa.transport.TransportBuffer buffer,
TunnelStreamSubmitOptions options,
ReactorErrorInfo errorInfo)
Sends a buffer to the tunnel stream.
|
java.lang.Object |
userSpecObject()
A user specified object, possibly a closure.
|
public TunnelStream(ReactorChannel reactorChannel, TunnelStreamOpenOptions options)
reactorChannel - the reactor channeloptions - the optionspublic TunnelStream(ReactorChannel reactorChannel, TunnelStreamRequestEvent event, TunnelStreamAcceptOptions options)
reactorChannel - the reactor channelevent - the eventoptions - the optionspublic com.thomsonreuters.upa.transport.TransportBuffer getBuffer(int size,
ReactorErrorInfo errorInfo)
size - the size(in bytes) of the buffer to geterrorInfo - error structure to be populated in the event of failurepublic int releaseBuffer(com.thomsonreuters.upa.transport.TransportBuffer buffer,
ReactorErrorInfo errorInfo)
buffer - the buffer to releaseerrorInfo - error structure to be populated in the event of failureReactorReturnCodes indicating success or failurepublic int submit(com.thomsonreuters.upa.transport.TransportBuffer buffer,
TunnelStreamSubmitOptions options,
ReactorErrorInfo errorInfo)
buffer - the buffer to sendoptions - the optionserrorInfo - error structure to be populated in the event of failureReactorReturnCodes.SUCCESS, if submit succeeded or
ReactorReturnCodes.PERSISTENCE_FULL, if the persistence file is full or
ReactorReturnCodes.INVALID_ENCODING, if the buffer encoding is invalid or
ReactorReturnCodes.FAILURE, if submit failed (refer to errorInfo for additional information)public int submit(MsgBase rdmMsg, ReactorErrorInfo errorInfo)
rdmMsg - the RDM message to senderrorInfo - error structure to be populated in the event of failureReactorReturnCodes.SUCCESS, if submit succeeded or
ReactorReturnCodes.PERSISTENCE_FULL, if the persistence file is full or
ReactorReturnCodes.FAILURE, if submit failed (refer to errorInfo for additional information)public int submit(com.thomsonreuters.upa.codec.Msg msg,
ReactorErrorInfo errorInfo)
msg - the message to senderrorInfo - error structure to be populated in the event of failureReactorReturnCodes.SUCCESS, if submit succeeded or
ReactorReturnCodes.FAILURE, if submit failed (refer to errorInfo for additional information)public int close(boolean finalStatusEvent,
ReactorErrorInfo errorInfo)
TunnelStreamStatusEvent when the closing of the tunnel stream to the remote end
is complete. If this is set to true, the tunnel stream will be cleaned up once the final
TunnelStreamStatusEvent event is provided to the application. This is indicated
by a non-open state.streamState on the event such as StreamStates.CLOSED
or StreamStates.CLOSED_RECOVER.finalStatusEvent - if true, a final TunnelStreamStatusEvent is provided to the
application when the closing of the tunnel stream to the remote end is completeerrorInfo - error structure to be populated in the event of failureReactorReturnCodes indicating success or failurepublic int streamId()
public int domainType()
public int serviceId()
public ClassOfService classOfService()
ClassOfServicepublic int guaranteedOutputBuffers()
public TunnelStreamStatusEventCallback statusEventCallback()
public TunnelStreamDefaultMsgCallback defaultMsgCallback()
public TunnelStreamQueueMsgCallback queueMsgCallback()
public java.lang.String name()
public java.lang.Object userSpecObject()
TunnelStream with other user created information,
such as a watch list associated with it.public com.thomsonreuters.upa.codec.State state()
public ReactorChannel reactorChannel()
public boolean isProvider()
Copyright @ 2019 Thomson Reuters. All Rights Reserved.