Class ChannelFlowControllerImpl
java.lang.Object
com.couchbase.client.dcp.transport.netty.ChannelFlowControllerImpl
- All Implemented Interfaces:
ChannelFlowController
-
Field Summary
Fields inherited from interface com.couchbase.client.dcp.transport.netty.ChannelFlowController
dummy
-
Constructor Summary
ConstructorsConstructorDescriptionChannelFlowControllerImpl
(com.couchbase.client.core.deps.io.netty.channel.Channel channel, Client.Environment environment) -
Method Summary
-
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 interfaceChannelFlowController
- Parameters:
message
- the buffer to acknowledge.
-
ack
public void ack(int numBytes) - Specified by:
ack
in interfaceChannelFlowController
-