Table of Contents

Struct MessageQueueStatistics

Namespace
DotCompute.Abstractions.RingKernels
Assembly
DotCompute.Abstractions.dll

Statistics for monitoring message queue performance.

public struct MessageQueueStatistics : IEquatable<MessageQueueStatistics>
Implements
Inherited Members

Properties

AverageLatencyUs

Average message latency (microseconds from enqueue to dequeue).

public double AverageLatencyUs { readonly get; init; }

Property Value

double

DequeueThroughput

Average dequeue throughput (messages per second).

public double DequeueThroughput { readonly get; init; }

Property Value

double

EnqueueThroughput

Average enqueue throughput (messages per second).

public double EnqueueThroughput { readonly get; init; }

Property Value

double

TotalDequeued

Total messages dequeued since initialization.

public long TotalDequeued { readonly get; init; }

Property Value

long

TotalDropped

Total messages dropped due to full queue.

public long TotalDropped { readonly get; init; }

Property Value

long

TotalEnqueued

Total messages enqueued since initialization.

public long TotalEnqueued { readonly get; init; }

Property Value

long

Utilization

Current queue utilization (0.0 to 1.0).

public double Utilization { readonly get; init; }

Property Value

double

Methods

Equals(MessageQueueStatistics)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MessageQueueStatistics other)

Parameters

other MessageQueueStatistics

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(MessageQueueStatistics, MessageQueueStatistics)

Determines whether two instances are equal.

public static bool operator ==(MessageQueueStatistics left, MessageQueueStatistics right)

Parameters

left MessageQueueStatistics
right MessageQueueStatistics

Returns

bool

operator !=(MessageQueueStatistics, MessageQueueStatistics)

Determines whether two instances are not equal.

public static bool operator !=(MessageQueueStatistics left, MessageQueueStatistics right)

Parameters

left MessageQueueStatistics
right MessageQueueStatistics

Returns

bool