class documentation
class ConsumerBatchReceivePolicy: (source)
Constructor: ConsumerBatchReceivePolicy(max_num_message, max_num_bytes, timeout_ms)
Batch receive policy can limit the number and bytes of messages in a single batch, and can specify a timeout for waiting for enough messages for this batch.
A batch receive action is completed as long as any one of the conditions (the batch has enough number or size of messages, or the waiting timeout is passed) are met.
Method | __init__ |
Wrapper BatchReceivePolicy. |
Method | policy |
Returns the actual one BatchReceivePolicy. |
Instance Variable | _policy |
Undocumented |