Class BatchSettings
The batch consuming settings.
Inheritance
BatchSettings
Assembly: Silverback.Integration.dll
Syntax
public sealed record BatchSettings : IValidatableSettings, IEquatable<BatchSettings>
Constructors
BatchSettings()
The batch consuming settings.
Declaration
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.
Declaration
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 consuming.
Declaration
public int Size { get; init; }
Property Value
Methods
Equals(BatchSettings?)
The batch consuming settings.
Declaration
public bool Equals(BatchSettings? other)
Parameters
Returns
Equals(object?)
The batch consuming settings.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
The batch consuming settings.
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
The batch consuming settings.
Declaration
public override string ToString()
Returns
Overrides
Validate()
Declaration
Operators
operator ==(BatchSettings?, BatchSettings?)
The batch consuming settings.
Declaration
public static bool operator ==(BatchSettings? left, BatchSettings? right)
Parameters
Returns
operator !=(BatchSettings?, BatchSettings?)
The batch consuming settings.
Declaration
public static bool operator !=(BatchSettings? left, BatchSettings? right)
Parameters
Returns
Implements