public class KeyValueFeatureHandler extends SimpleChannelInboundHandler<FullBinaryMemcacheResponse> implements ChannelOutboundHandler
This handler negotiates the enabled features through the HELLO command.
Like the SASL auth handler, this handler intercepts the original connect process to properly negotiate the supported features with the server. Once the features are negotiated they are sent through custom events up the pipeline and the handler removes itself.
ChannelHandler.Sharable| Constructor and Description |
|---|
KeyValueFeatureHandler(CoreEnvironment environment) |
| 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 |
write(ChannelHandlerContext ctx,
Object msg,
ChannelPromise promise) |
acceptInboundMessage, channelReadchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic KeyValueFeatureHandler(CoreEnvironment environment)
protected 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 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 © 2016 Couchbase, Inc.. All rights reserved.