Interface IMaintainer
The maintainer for ZoneTree to control merge operations and memory compaction.
Inherited Members
Namespace: Tenray.ZoneTree
Assembly: ZoneTree.dll
Syntax
public interface IMaintainer : IDisposable
Remarks
You must complete or cancel all pending tasks of this maintainer before disposing.
Properties
| Improve this Doc View SourceDiskSegmentBufferLifeTime
Sets or gets Disk Segment block cache life time in milliseconds. Default value is 10_000 milliseconds.
Declaration
long DiskSegmentBufferLifeTime { get; set; }
Property Value
Type | Description |
---|---|
long |
EnableJobForCleaningInactiveCaches
Gets or sets a value indicating whether a periodic timer is enabled to release
unused block and key/value record caches in the disk segment.
Changing this property will start or stop the periodic timer accordingly.
The default value is false
.
Declaration
bool EnableJobForCleaningInactiveCaches { get; set; }
Property Value
Type | Description |
---|---|
bool |
InactiveBlockCacheCleanupInterval
Gets or sets the interval for the periodic timer that triggers the cleanup job. The default value is 5 seconds.
Declaration
TimeSpan InactiveBlockCacheCleanupInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
MaximumReadOnlySegmentCount
Starts merge operation when read-only segments count exceeds this value. Default value is 64.
Declaration
int MaximumReadOnlySegmentCount { get; set; }
Property Value
Type | Description |
---|---|
int |
MinimumSparseArrayLength
Minimum sparse array length when a new disk segment is created. Default value is 0.
Declaration
int MinimumSparseArrayLength { get; set; }
Property Value
Type | Description |
---|---|
int |
SparseArrayStepLength
Configures sparse array step length when the disk segment length is bigger than
MinimumSparseArrayLength * SparseArrayStepLength.
The default value is 1000.
Declaration
int SparseArrayStepLength { get; set; }
Property Value
Type | Description |
---|---|
int |
ThresholdForMergeOperationStart
Starts merge operation when records count in read-only segments exceeds this value. Default value is 0.
Declaration
int ThresholdForMergeOperationStart { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceWaitForBackgroundThreads()
Waits until all running tasks are completed.
Declaration
void WaitForBackgroundThreads()
TryCancelBackgroundThreads()
Tries cancel running tasks.
Declaration
void TryCancelBackgroundThreads()