Class P2PMessageQueueOptions
- Namespace
- DotCompute.Abstractions.Messaging
- Assembly
- DotCompute.Abstractions.dll
Options for configuring a P2P message queue.
public sealed class P2PMessageQueueOptions
- Inheritance
-
P2PMessageQueueOptions
- Inherited Members
Properties
BackpressureStrategy
Gets or sets the backpressure strategy when queue is full.
public P2PBackpressureStrategy BackpressureStrategy { get; set; }
Property Value
BatchSize
Gets or sets the batch size for optimized transfers.
public int BatchSize { get; set; }
Property Value
BlockingTimeoutMs
Gets or sets the timeout for blocking operations in milliseconds.
public int BlockingTimeoutMs { get; set; }
Property Value
Capacity
Gets or sets the queue capacity (number of messages).
public int Capacity { get; set; }
Property Value
Remarks
Must be a power of 2 for optimal performance. Will be rounded up if not. Default is 1024.
EnableTransferValidation
Gets or sets whether to enable transfer validation.
public bool EnableTransferValidation { get; set; }
Property Value
PreferredTransferMode
Gets or sets the preferred transfer mode.
public P2PTransferMode PreferredTransferMode { get; set; }
Property Value
StagingBufferSize
Gets or sets the size of the host staging buffer in bytes.
public int StagingBufferSize { get; set; }
Property Value
UsePinnedMemory
Gets or sets whether to use pinned memory for the ring buffer.
public bool UsePinnedMemory { get; set; }
Property Value
Methods
Validate()
Validates and normalizes the options.
public void Validate()