Class DcpChannelControlHandler

java.lang.Object
com.couchbase.client.dcp.conductor.DcpChannelControlHandler
All Implemented Interfaces:
ControlEventHandler

public class DcpChannelControlHandler extends Object implements ControlEventHandler
  • Constructor Details

    • DcpChannelControlHandler

      public DcpChannelControlHandler(DcpChannel dcpChannel)
  • Method Details

    • onEvent

      public void onEvent(ChannelFlowController flowController, com.couchbase.client.core.deps.io.netty.buffer.ByteBuf buf)
      Description copied from interface: ControlEventHandler
      Called every time when a control event happens that should be handled by consumers of the Client.

      Even if you are not doing anything with the events, make sure to release the buffer!!

      Specified by:
      onEvent in interface ControlEventHandler
      Parameters:
      flowController - the flow controller for the passed event.
      buf - the control event happening.