Class BatchSettings
- Namespace
- Silverback.Messaging.Sequences.Batch
- Assembly
- Silverback.Integration.dll
The batch processing settings.
public sealed record BatchSettings : IValidatableSettings, IEquatable<BatchSettings>
- Inheritance
-
BatchSettings
- Implements
- Inherited Members
Constructors
BatchSettings()
public BatchSettings()
Properties
MaxWaitTime
Gets the maximum amount of time to wait for the batch to be filled. After this time the
batch will be completed even if the specified Size is not reached.
public TimeSpan? MaxWaitTime { get; init; }
Property Value
Size
Gets the number of messages to be processed in batch. Setting this property to a value greater than 1 enables batch processing.
public int Size { get; init; }
Property Value
Methods
Equals(BatchSettings?)
public bool Equals(BatchSettings? other)
Parameters
otherBatchSettings
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
public void Validate()
Operators
operator ==(BatchSettings?, BatchSettings?)
public static bool operator ==(BatchSettings? left, BatchSettings? right)
Parameters
leftBatchSettingsrightBatchSettings
Returns
operator !=(BatchSettings?, BatchSettings?)
public static bool operator !=(BatchSettings? left, BatchSettings? right)
Parameters
leftBatchSettingsrightBatchSettings