@Deprecated public class DCPConnectionHandler extends SimpleChannelInboundHandler<FullBinaryMemcacheResponse> implements ChannelOutboundHandler
DCP connection handler makes sure that all channels have DCP connection initialized.
ChannelHandler.Sharable| Constructor and Description |
|---|
DCPConnectionHandler(CoreEnvironment env)
Deprecated.
Creates a new
DCPConnectionHandler. |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(ChannelHandlerContext ctx,
SocketAddress localAddress,
ChannelPromise promise)
Deprecated.
|
void |
channelActive(ChannelHandlerContext ctx)
Deprecated.
Once the channel is marked as active, the open DCP connection.
|
protected void |
channelRead0(ChannelHandlerContext ctx,
FullBinaryMemcacheResponse msg)
Deprecated.
Dispatches incoming OPEN_CONNECTION responses and also initialize flow control.
|
void |
close(ChannelHandlerContext ctx,
ChannelPromise promise)
Deprecated.
|
void |
connect(ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelPromise promise)
Deprecated.
|
void |
deregister(ChannelHandlerContext ctx,
ChannelPromise promise)
Deprecated.
|
void |
disconnect(ChannelHandlerContext ctx,
ChannelPromise promise)
Deprecated.
|
void |
flush(ChannelHandlerContext ctx)
Deprecated.
|
void |
read(ChannelHandlerContext ctx)
Deprecated.
|
void |
write(ChannelHandlerContext ctx,
Object msg,
ChannelPromise promise)
Deprecated.
|
acceptInboundMessage, channelReadchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic DCPConnectionHandler(CoreEnvironment env)
Creates a new DCPConnectionHandler.
public void channelActive(ChannelHandlerContext ctx) throws Exception
Once the channel is marked as active, the open DCP connection.
channelActive in interface ChannelInboundHandlerchannelActive in class ChannelInboundHandlerAdapterctx - the handler context.Exception - if something goes wrong.protected void channelRead0(ChannelHandlerContext ctx, FullBinaryMemcacheResponse msg) throws Exception
Dispatches incoming OPEN_CONNECTION responses and also initialize flow control.
channelRead0 in class SimpleChannelInboundHandler<FullBinaryMemcacheResponse>ctx - the handler context.msg - the incoming message to investigate.Exception - if something goes wrong during negotiation.public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception
bind in interface ChannelOutboundHandlerExceptionpublic 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 ChannelOutboundHandlerExceptionCopyright © 2017 Couchbase, Inc.. All rights reserved.