Interface ChannelFlowController

All Known Implementing Classes:
ChannelFlowControllerImpl

public interface ChannelFlowController
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    A flow controller that doesn't do anything.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ack(int numBytes)
     
    void
    ack(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf message)
    Acknowledge bytes read if DcpControl.Names.CONNECTION_BUFFER_SIZE is set on bootstrap.
  • Field Details

  • Method Details

    • ack

      void ack(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf message)
      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.

      Parameters:
      message - the buffer to acknowledge.
    • ack

      void ack(int numBytes)