Table of Contents

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

TimeSpan?

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

int

Methods

Equals(BatchSettings?)

public bool Equals(BatchSettings? other)

Parameters

other BatchSettings

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

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

left BatchSettings
right BatchSettings

Returns

bool

operator !=(BatchSettings?, BatchSettings?)

public static bool operator !=(BatchSettings? left, BatchSettings? right)

Parameters

left BatchSettings
right BatchSettings

Returns

bool