public class ChannelFlowControllerImpl extends Object implements ChannelFlowController
dummy| Constructor and Description |
|---|
ChannelFlowControllerImpl(io.netty.channel.Channel channel,
Client.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(io.netty.buffer.ByteBuf message)
Acknowledge bytes read if DcpControl.Names.CONNECTION_BUFFER_SIZE is set on bootstrap.
|
void |
ack(int numBytes) |
public ChannelFlowControllerImpl(io.netty.channel.Channel channel,
Client.Environment environment)
public void ack(io.netty.buffer.ByteBuf message)
ChannelFlowController
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.
ack in interface ChannelFlowControllermessage - the buffer to acknowledge.public void ack(int numBytes)
ack in interface ChannelFlowControllerCopyright © 2021 Couchbase, Inc.. All rights reserved.