public interface ChannelFlowController
| Modifier and Type | Field and Description |
|---|---|
static ChannelFlowController |
dummy
A flow controller that doesn't do anything.
|
| 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) |
static final ChannelFlowController dummy
void ack(io.netty.buffer.ByteBuf message)
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.
message - the buffer to acknowledge.void ack(int numBytes)
Copyright © 2021 Couchbase, Inc.. All rights reserved.