26.25. Class PushQueueStorage

Namespace: ArmoniK.Core.Adapters.Memory
Assembly: ArmoniK.Core.Adapters.Memory.dll

public class PushQueueStorage : IPushQueueStorage, IQueueStorage, IInitializable, IHealthCheckProvider

26.25.1. Inheritance

objectPushQueueStorage

26.25.2. Implements

IPushQueueStorage, IQueueStorage, IInitializable, IHealthCheckProvider

26.25.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

26.25.4. Properties

26.25.4.1. MaxPriority

Max priority supported by the queue

public int MaxPriority { get; }

26.25.4.1.1. Property Value

int

26.25.5. Methods

26.25.5.1. Check(HealthCheckTag)

Checks the status of a class for the given health check type.

public Task<HealthCheckResult> Check(HealthCheckTag tag)

26.25.5.1.1. Parameters

tag HealthCheckTag

Health check for which the class has to answer.

26.25.5.1.2. Returns

Task<HealthCheckResult>

The result of the check containing the status of the class for the health check type.

26.25.5.2. Init(CancellationToken)

Executes an initialization process for the class

public Task Init(CancellationToken cancellationToken)

26.25.5.2.1. Parameters

cancellationToken CancellationToken

Token used to cancel the execution of the method

26.25.5.2.2. Returns

Task

Task representing the asynchronous execution of the method

26.25.5.3. PushMessagesAsync(IEnumerable<MessageData>, string, CancellationToken)

Puts messages into the queue, handles priorities of messages

public Task PushMessagesAsync(IEnumerable<MessageData> messages, string partitionId, CancellationToken cancellationToken = default)

26.25.5.3.1. Parameters

messages IEnumerable<MessageData>

Collection of messages

partitionId string

Id of the partition

cancellationToken CancellationToken

Token used to cancel the execution of the method

26.25.5.3.2. Returns

Task

Task representing the asynchronous execution of the method