public class NettyTransportChannel extends Object implements TransportChannel
Constructor and Description |
---|
NettyTransportChannel(NettyTransport transport,
TransportServiceAdapter transportServiceAdapter,
String action,
org.jboss.netty.channel.Channel channel,
long requestId,
Version version,
String profileName,
long reservedBytes) |
Modifier and Type | Method and Description |
---|---|
String |
action() |
org.jboss.netty.channel.Channel |
getChannel()
Returns the underlying netty channel.
|
String |
getChannelType() |
String |
getProfileName() |
long |
getRequestId() |
void |
sendResponse(Throwable error) |
void |
sendResponse(TransportResponse response) |
void |
sendResponse(TransportResponse response,
TransportResponseOptions options) |
public NettyTransportChannel(NettyTransport transport, TransportServiceAdapter transportServiceAdapter, String action, org.jboss.netty.channel.Channel channel, long requestId, Version version, String profileName, long reservedBytes)
public String getProfileName()
getProfileName
in interface TransportChannel
public String action()
action
in interface TransportChannel
public void sendResponse(TransportResponse response) throws IOException
sendResponse
in interface TransportChannel
IOException
public void sendResponse(TransportResponse response, TransportResponseOptions options) throws IOException
sendResponse
in interface TransportChannel
IOException
public void sendResponse(Throwable error) throws IOException
sendResponse
in interface TransportChannel
IOException
public long getRequestId()
getRequestId
in interface TransportChannel
public String getChannelType()
getChannelType
in interface TransportChannel
public org.jboss.netty.channel.Channel getChannel()
Copyright © 2009–2017. All rights reserved.