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, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
protected void channelRead0(ChannelHandlerContext ctx, FullBinaryMemcacheResponse msg) throws Exception
channelRead0
in class SimpleChannelInboundHandler<FullBinaryMemcacheResponse>
Exception
public void channelActive(ChannelHandlerContext ctx) throws Exception
channelActive
in interface ChannelInboundHandler
channelActive
in class ChannelInboundHandlerAdapter
Exception
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception
connect
in interface ChannelOutboundHandler
Exception
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in interface ChannelInboundHandler
userEventTriggered
in class ChannelInboundHandlerAdapter
Exception
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
disconnect
in interface ChannelOutboundHandler
Exception
public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
close
in interface ChannelOutboundHandler
Exception
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
deregister
in interface ChannelOutboundHandler
Exception
public void read(ChannelHandlerContext ctx) throws Exception
read
in interface ChannelOutboundHandler
Exception
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception
write
in interface ChannelOutboundHandler
Exception
public void flush(ChannelHandlerContext ctx) throws Exception
flush
in interface ChannelOutboundHandler
Exception
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception
bind
in interface ChannelOutboundHandler
Exception
Copyright © 2017 Couchbase, Inc.. All rights reserved.