Show / Hide Table of Contents

    Class BatchSettings

    The batch consuming settings.

    Inheritance
    object
    BatchSettings
    Implements
    IEquatable<BatchSettings>
    IValidatableEndpointSettings
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Sequences.Batch
    Assembly: Silverback.Integration.dll
    Syntax
    public sealed class BatchSettings : IEquatable<BatchSettings>, IValidatableEndpointSettings

    Properties

    | Improve this doc View source

    MaxWaitTime

    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?
    | Improve this doc View source

    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 source

    Equals(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 other parameter; otherwise, false.

    | Improve this doc View source

    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
    object.Equals(object)
    | Improve this doc View source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Improve this doc View source

    Validate()

    Throws an EndpointConfigurationException if the current configuration is not valid.

    Declaration
    public void Validate()

    Implements

    IEquatable<T>
    IValidatableEndpointSettings
    • Improve this doc
    • View source
    In this article
    • Properties
      • MaxWaitTime
      • Size
    • Methods
      • Equals(BatchSettings?)
      • Equals(object?)
      • GetHashCode()
      • Validate()
    • Implements
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini