pub struct BatchConfig {
pub batch: usize,
pub expires: Option<Duration>,
pub no_wait: bool,
pub max_bytes: usize,
pub idle_heartbeat: Duration,
pub min_pending: Option<usize>,
pub min_ack_pending: Option<usize>,
pub group: Option<String>,
}
Expand description
Used for next Pull Request for Pull Consumer
Fields§
§batch: usize
The number of messages that are being requested to be delivered.
expires: Option<Duration>
The optional number of nanoseconds that the server will store this next request for before forgetting about the pending batch size.
no_wait: bool
This optionally causes the server not to store this pending request at all, but when there are no messages to deliver will send a nil bytes message with a Status header of 404, this way you can know when you reached the end of the stream for example. A 409 is returned if the Consumer has reached MaxAckPending limits.
max_bytes: usize
Sets max number of bytes in total in given batch size. This works together with batch
.
Whichever value is reached first, batch will complete.
idle_heartbeat: Duration
Setting this other than zero will cause the server to send 100 Idle Heartbeat status to the client
min_pending: Option<usize>
§min_ack_pending: Option<usize>
§group: Option<String>
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§fn clone(&self) -> BatchConfig
fn clone(&self) -> BatchConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more