Class BatchSettings
The batch consuming settings.
Inherited Members
Namespace: Silverback.Messaging.Sequences.Batch
Assembly: Silverback.Integration.dll
Syntax
public sealed class BatchSettings : IEquatable<BatchSettings>, IValidatableEndpointSettings
Properties
| Improve this doc View sourceMaxWaitTime
Gets or sets 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; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan? |
Size
Gets or sets 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; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Improve this doc View sourceEquals(BatchSettings?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(BatchSettings? other)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchSettings | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Improve this doc View sourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Improve this doc View sourceValidate()
Throws an EndpointConfigurationException if the current configuration is not valid.
Declaration
public void Validate()