public class NettyTransportChannel extends java.lang.Object implements TransportChannel
Constructor and Description |
---|
NettyTransportChannel(NettyTransport transport,
TransportServiceAdapter transportServiceAdapter,
java.lang.String action,
org.jboss.netty.channel.Channel channel,
long requestId,
Version version,
java.lang.String profileName,
long reservedBytes) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
action() |
org.jboss.netty.channel.Channel |
getChannel()
Returns the underlying netty channel.
|
java.lang.String |
getChannelType() |
java.lang.String |
getProfileName() |
long |
getRequestId() |
void |
sendResponse(java.lang.Throwable error) |
void |
sendResponse(TransportResponse response) |
void |
sendResponse(TransportResponse response,
TransportResponseOptions options) |
public NettyTransportChannel(NettyTransport transport, TransportServiceAdapter transportServiceAdapter, java.lang.String action, org.jboss.netty.channel.Channel channel, 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.Throwable error) 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 org.jboss.netty.channel.Channel getChannel()