use of com.couchbase.client.core.io.IoContext in project couchbase-jvm-clients by couchbase.
the class TrafficCaptureHandler method channelActive.
@Override
public void channelActive(ChannelHandlerContext ctx) {
ioContext = new IoContext(endpointContext, ctx.channel().localAddress(), ctx.channel().remoteAddress(), endpointContext.bucket());
ctx.fireChannelActive();
}
use of com.couchbase.client.core.io.IoContext in project couchbase-jvm-clients by couchbase.
the class NonChunkedHttpMessageHandler method channelActive.
/**
* When this channel is marked active it also needs to propagate that to the aggregator.
*
* @param ctx the channel handler context.
*/
@Override
public void channelActive(final ChannelHandlerContext ctx) throws Exception {
ioContext = new IoContext(endpointContext, ctx.channel().localAddress(), ctx.channel().remoteAddress(), endpointContext.bucket());
channelContext = new HttpChannelContext(ctx.channel().id());
remoteHost = endpoint.remoteHostname() + ":" + endpoint.remotePort();
ctx.pipeline().get(HttpObjectAggregator.class).channelActive(ctx);
ctx.fireChannelActive();
}
Aggregations