Class ChannelFlowControllerImpl

java.lang.Object
com.couchbase.client.dcp.transport.netty.ChannelFlowControllerImpl
All Implemented Interfaces:
ChannelFlowController

public class ChannelFlowControllerImpl extends Object implements ChannelFlowController
  • Constructor Details

    • ChannelFlowControllerImpl

      public ChannelFlowControllerImpl(com.couchbase.client.core.deps.io.netty.channel.Channel channel, Client.Environment environment)
  • Method Details

    • ack

      public void ack(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf message)
      Description copied from interface: ChannelFlowController
      Acknowledge bytes read if DcpControl.Names.CONNECTION_BUFFER_SIZE is set on bootstrap.

      Note that acknowledgement will be stored but most likely not sent to the server immediately to save network overhead. Instead, depending on the value set through Client.Builder.bufferAckWatermark(int) in percent the client will automatically determine when to send the message (when the watermark is reached).

      This method can always be called even if not enabled, if not enabled on bootstrap it will short-circuit.

      Specified by:
      ack in interface ChannelFlowController
      Parameters:
      message - the buffer to acknowledge.
    • ack

      public void ack(int numBytes)
      Specified by:
      ack in interface ChannelFlowController