Class DcpPipeline
java.lang.Object
com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerAdapter
com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandlerAdapter
com.couchbase.client.core.deps.io.netty.channel.ChannelInitializer<com.couchbase.client.core.deps.io.netty.channel.Channel>
com.couchbase.client.dcp.transport.netty.DcpPipeline
- All Implemented Interfaces:
com.couchbase.client.core.deps.io.netty.channel.ChannelHandler,com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandler
public class DcpPipeline
extends com.couchbase.client.core.deps.io.netty.channel.ChannelInitializer<com.couchbase.client.core.deps.io.netty.channel.Channel>
Sets up the pipeline for the actual DCP communication channels.
- Since:
- 1.0.0
- Author:
- Michael Nitschinger
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.deps.io.netty.channel.ChannelHandler
com.couchbase.client.core.deps.io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionDcpPipeline(Client.Environment environment, DcpChannelControlHandler controlHandler, BucketConfigArbiter bucketConfigArbiter, DcpChannelMetrics metrics, DcpClientMetrics clientMetrics) Creates the pipeline. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitChannel(com.couchbase.client.core.deps.io.netty.channel.Channel ch) Initializes the full pipeline with all handlers needed (some of them may remove themselves during steady state, like auth and feature negotiation).Methods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class com.couchbase.client.core.deps.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
DcpPipeline
public DcpPipeline(Client.Environment environment, DcpChannelControlHandler controlHandler, BucketConfigArbiter bucketConfigArbiter, DcpChannelMetrics metrics, DcpClientMetrics clientMetrics) Creates the pipeline.- Parameters:
environment- the stateful environment.controlHandler- the control event handler.
-
-
Method Details
-
initChannel
protected void initChannel(com.couchbase.client.core.deps.io.netty.channel.Channel ch) throws Exception Initializes the full pipeline with all handlers needed (some of them may remove themselves during steady state, like auth and feature negotiation).- Specified by:
initChannelin classcom.couchbase.client.core.deps.io.netty.channel.ChannelInitializer<com.couchbase.client.core.deps.io.netty.channel.Channel>- Throws:
Exception
-