Table of Contents

Struct P2PBatchSendResult

Namespace
DotCompute.Abstractions.Messaging
Assembly
DotCompute.Abstractions.dll

Result of a P2P batch send operation.

public readonly struct P2PBatchSendResult
Inherited Members

Properties

ErrorMessage

Gets the error message if the send failed.

public string? ErrorMessage { get; init; }

Property Value

string

IsSuccess

Gets a value indicating whether the batch send was successful.

public bool IsSuccess { get; init; }

Property Value

bool

MessagesPerSecond

Gets the throughput in messages per second.

public double MessagesPerSecond { get; init; }

Property Value

double

MessagesSent

Gets the number of messages sent.

public int MessagesSent { get; init; }

Property Value

int

TotalLatencyMicroseconds

Gets the total transfer latency in microseconds.

public double TotalLatencyMicroseconds { get; init; }

Property Value

double

TransferMode

Gets the transfer mode used.

public P2PTransferMode TransferMode { get; init; }

Property Value

P2PTransferMode

Methods

Failure(string, int)

Creates a failed result.

public static P2PBatchSendResult Failure(string errorMessage, int messagesSent = 0)

Parameters

errorMessage string
messagesSent int

Returns

P2PBatchSendResult

Success(int, double, P2PTransferMode)

Creates a successful result.

public static P2PBatchSendResult Success(int count, double latencyUs, P2PTransferMode mode)

Parameters

count int
latencyUs double
mode P2PTransferMode

Returns

P2PBatchSendResult