public class LocalTransportChannel extends java.lang.Object implements TransportChannel
Constructor and Description |
---|
LocalTransportChannel(LocalTransport sourceTransport,
TransportServiceAdapter sourceTransportServiceAdapter,
LocalTransport targetTransport,
java.lang.String action,
long requestId,
Version version,
long reservedBytes,
ThreadContext threadContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
action() |
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) |
public LocalTransportChannel(LocalTransport sourceTransport, TransportServiceAdapter sourceTransportServiceAdapter, LocalTransport targetTransport, java.lang.String action, long requestId, Version version, long reservedBytes, ThreadContext threadContext)
public java.lang.String action()
action
in interface TransportChannel
public java.lang.String getProfileName()
getProfileName
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 Version getVersion()
TransportChannel
getVersion
in interface TransportChannel