Class PersistentChannelOptions
Represents persistent channel options.
Inherited Members
Namespace: DotNext.Threading.Channels
Assembly: DotNext.Threading.dll
Syntax
public sealed class PersistentChannelOptions : ChannelOptions
Constructors
| Edit this page View SourcePersistentChannelOptions()
Initializes a new options with default settings.
Declaration
public PersistentChannelOptions()
Properties
| Edit this page View SourceBufferSize
Gets or sets size of internal buffer used to perform I/O operations.
Declaration
public int BufferSize { get; set; }
Property Value
Type | Description |
---|---|
int |
InitialPartitionSize
Gets or sets initial size of partition file, in bytes.
Declaration
public long InitialPartitionSize { get; set; }
Property Value
Type | Description |
---|---|
long |
Remarks
This property may help to avoid fragmentation of partition file on disk during writing.
Location
Gets or sets path used to store queue files.
Declaration
public string Location { get; set; }
Property Value
Type | Description |
---|---|
string |
MeasurementTags
Gets or sets a list of tags to be associated with each measurement.
Declaration
[CLSCompliant(false)]
public TagList MeasurementTags { get; set; }
Property Value
Type | Description |
---|---|
TagList |
PartitionCapacity
Gets or sets maximum number of messages per file.
Declaration
public int PartitionCapacity { get; set; }
Property Value
Type | Description |
---|---|
int |
ReliableEnumeration
Gets or sets a value indicating that ReadAllAsync(CancellationToken) must provide reliable (transactional) enumeration over persisted elements.
Declaration
public bool ReliableEnumeration { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Reliable read means that the element obtained via Current is not marked as read before the next call of MoveNextAsync(). Note that reliable enumeration affects the performance of asynchronous enumerator.