public final class TcpTransportChannel<Channel> extends java.lang.Object implements TransportChannel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
action |
protected long |
requestId |
protected Version |
version |
Constructor and Description |
---|
TcpTransportChannel(TcpTransport<Channel> transport,
Channel channel,
java.lang.String channelType,
java.lang.String action,
long requestId,
Version version,
java.lang.String profileName,
long reservedBytes) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
action() |
Channel |
getChannel() |
java.lang.String |
getChannelType() |
java.lang.String |
getProfileName() |
long |
getRequestId() |
Version |
getVersion()
Returns the version of the other party that this channel will send a response to.
|
void |
sendResponse(java.lang.Exception exception) |
void |
sendResponse(TransportResponse response) |
void |
sendResponse(TransportResponse response,
TransportResponseOptions options) |
protected final Version version
protected final java.lang.String action
protected final long requestId
public TcpTransportChannel(TcpTransport<Channel> transport, Channel channel, java.lang.String channelType, java.lang.String action, long requestId, Version version, java.lang.String profileName, long reservedBytes)
public java.lang.String getProfileName()
getProfileName
in interface TransportChannel
public java.lang.String action()
action
in interface TransportChannel
public void sendResponse(TransportResponse response) throws java.io.IOException
sendResponse
in interface TransportChannel
java.io.IOException
public void sendResponse(TransportResponse response, TransportResponseOptions options) throws java.io.IOException
sendResponse
in interface TransportChannel
java.io.IOException
public void sendResponse(java.lang.Exception exception) throws java.io.IOException
sendResponse
in interface TransportChannel
java.io.IOException
public long getRequestId()
getRequestId
in interface TransportChannel
public java.lang.String getChannelType()
getChannelType
in interface TransportChannel
public Channel getChannel()
public Version getVersion()
TransportChannel
getVersion
in interface TransportChannel