public class KeyValueErrorMapHandler extends SimpleChannelInboundHandler<FullBinaryMemcacheResponse> implements ChannelOutboundHandler
This handler is added dynamically by the KeyValueFeatureHandler to load and store the extended error map from the server. It will only be added if the server has this feature enabled.
ChannelHandler.Sharable| Constructor and Description |
|---|
KeyValueErrorMapHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(ChannelHandlerContext ctx,
SocketAddress localAddress,
ChannelPromise promise) |
void |
channelActive(ChannelHandlerContext ctx) |
protected void |
channelRead0(ChannelHandlerContext ctx,
FullBinaryMemcacheResponse msg) |
void |
close(ChannelHandlerContext ctx,
ChannelPromise promise) |
void |
connect(ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelPromise promise) |
void |
deregister(ChannelHandlerContext ctx,
ChannelPromise promise) |
void |
disconnect(ChannelHandlerContext ctx,
ChannelPromise promise) |
void |
flush(ChannelHandlerContext ctx) |
void |
read(ChannelHandlerContext ctx) |
void |
userEventTriggered(ChannelHandlerContext ctx,
Object evt) |
void |
write(ChannelHandlerContext ctx,
Object msg,
ChannelPromise promise) |
acceptInboundMessage, channelReadchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedprotected void channelRead0(ChannelHandlerContext ctx, FullBinaryMemcacheResponse msg) throws Exception
channelRead0 in class SimpleChannelInboundHandler<FullBinaryMemcacheResponse>Exceptionpublic void channelActive(ChannelHandlerContext ctx) throws Exception
channelActive in interface ChannelInboundHandlerchannelActive in class ChannelInboundHandlerAdapterExceptionpublic void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception
connect in interface ChannelOutboundHandlerExceptionpublic void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered in interface ChannelInboundHandleruserEventTriggered in class ChannelInboundHandlerAdapterExceptionpublic void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
disconnect in interface ChannelOutboundHandlerExceptionpublic void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
close in interface ChannelOutboundHandlerExceptionpublic void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
deregister in interface ChannelOutboundHandlerExceptionpublic void read(ChannelHandlerContext ctx) throws Exception
read in interface ChannelOutboundHandlerExceptionpublic void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception
write in interface ChannelOutboundHandlerExceptionpublic void flush(ChannelHandlerContext ctx) throws Exception
flush in interface ChannelOutboundHandlerExceptionpublic void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception
bind in interface ChannelOutboundHandlerExceptionCopyright © 2017 Couchbase, Inc.. All rights reserved.