public class RpcConnection extends io.netty.handler.codec.MessageToMessageDecoder<RpcResponse>
| Modifier and Type | Field and Description |
|---|---|
protected RpcBinding |
binding |
| Constructor and Description |
|---|
RpcConnection(RpcBinding binding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(ServiceHosts serviceHosts) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
RpcResponse response,
java.util.List<java.lang.Object> out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
java.util.List<io.netty.channel.Channel> |
getChannels() |
int |
getConnId() |
long |
nextSequenceId() |
com.stumbleupon.async.Deferred<java.lang.Object> |
send(RpcMessage msg) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableprotected final RpcBinding binding
public RpcConnection(RpcBinding binding)
public void connect(ServiceHosts serviceHosts)
public void close()
public java.util.List<io.netty.channel.Channel> getChannels()
public long nextSequenceId()
public int getConnId()
public com.stumbleupon.async.Deferred<java.lang.Object> send(RpcMessage msg)
protected void decode(io.netty.channel.ChannelHandlerContext ctx,
RpcResponse response,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
decode in class io.netty.handler.codec.MessageToMessageDecoder<RpcResponse>java.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
throws java.lang.Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exception