Class BatchOptions
How a batch consumer collects a batch, one contract for every broker, with Apache Camel's names: a batch is sent on
once it holds messages, once no message came for (the idle
timeout, restarted by every message), or once has passed since its first message (the hard
limit), whichever comes first.
public sealed record BatchOptions : IEquatable<BatchOptions>
Inheritance
Implements
Properties
Interval
A batch is sent on when this much time has passed since its first message; null: no limit.
public TimeSpan? Interval { get; }
PollTimeout
A batch with messages is sent on when no further message came for this long.
public TimeSpan PollTimeout { get; }
Methods
Resolve(string, bool, int?, int, int?, int)
The batch options of an endpoint from its option values, or null when batch mode is off. A batch option
public static BatchOptions? Resolve(string endpoint, bool batching, int? maxBatchMessages, int pollTimeoutMs, int? batchingIntervalMs, int defaultMaxBatchMessages)
Constructors
BatchOptions(int, TimeSpan, TimeSpan?)
Creates batch options; values out of range throw.