T - response typeRQ - Request typepublic abstract class AbstractEtcdResponseHandler<RQ extends EtcdRequest,T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
| Modifier and Type | Field and Description |
|---|---|
protected EtcdNettyClient |
client |
protected io.netty.util.concurrent.Promise<EtcdKeysResponse> |
promise |
protected RQ |
request |
| Constructor and Description |
|---|
AbstractEtcdResponseHandler(EtcdNettyClient etcdNettyClient,
RQ etcdRequest)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
retried(boolean retried)
Set if the connection is retried.
|
acceptInboundMessage, channelRead, channelRead0channelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharableprotected final io.netty.util.concurrent.Promise<EtcdKeysResponse> promise
protected final EtcdNettyClient client
protected final RQ extends EtcdRequest request
public AbstractEtcdResponseHandler(EtcdNettyClient etcdNettyClient, RQ etcdRequest)
etcdNettyClient - the client handling connectionsetcdRequest - requestpublic void retried(boolean retried)
retried - true if request is being retried.public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelUnregistered in interface io.netty.channel.ChannelInboundHandlerchannelUnregistered in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exception