Interface ChannelFlowController
- All Known Implementing Classes:
ChannelFlowControllerImpl
public interface ChannelFlowController
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChannelFlowController
A flow controller that doesn't do anything. -
Method Summary
-
Field Details
-
dummy
A flow controller that doesn't do anything.
-
-
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)
-