Class UnifiedBatchingOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for the UnifiedBatchingMiddleware.
public sealed class UnifiedBatchingOptions
- Inheritance
-
UnifiedBatchingOptions
- Inherited Members
- Extension Methods
Properties
BatchFilter
Gets or sets custom filter function to determine if a message should be batched. If null, uses NonBatchableMessageTypes for filtering.
public Func<IDispatchMessage, bool>? BatchFilter { get; set; }
Property Value
- Func<IDispatchMessage, bool>
The current BatchFilter value.
BatchKeySelector
Gets or sets custom function to determine the batch key for grouping messages. If null, groups by message type name.
public Func<IDispatchMessage, string>? BatchKeySelector { get; set; }
Property Value
- Func<IDispatchMessage, string>
The current BatchKeySelector value.
MaxBatchDelay
Gets or sets maximum time to wait before flushing a batch.
public TimeSpan MaxBatchDelay { get; set; }
Property Value
- TimeSpan
Maximum time to wait before flushing a batch.
MaxBatchSize
Gets or sets maximum number of messages to batch together.
[Range(1, 2147483647)]
public int MaxBatchSize { get; set; }
Property Value
- int
The current MaxBatchSize value.
MaxParallelism
Gets or sets maximum degree of parallelism for individual message processing.
[Range(1, 2147483647)]
public int MaxParallelism { get; set; }
Property Value
- int
The current MaxParallelism value.
NonBatchableMessageTypes
Gets set of message types that should not be batched.
public HashSet<Type> NonBatchableMessageTypes { get; }
Property Value
- HashSet<Type>
The current NonBatchableMessageTypes value.
ProcessAsOptimizedBulk
Gets or sets a value indicating whether to process batches as optimized bulk operations when possible.
public bool ProcessAsOptimizedBulk { get; set; }
Property Value
- bool
The current ProcessAsOptimizedBulk value.