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 |
EnablePeriodicTimer
Enables a periodic timer to release disk segment unused block cache. Changing this property would start or stop the periodic timer. Default value is true.
Declaration
bool EnablePeriodicTimer { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |
PeriodicTimerInterval
Sets or gets Periodic timer interval. Default value is 5 seconds;
Declaration
TimeSpan PeriodicTimerInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
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 2M.
Declaration
int ThresholdForMergeOperationStart { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceCompleteRunningTasks()
Waits until all running tasks are completed.
Declaration
void CompleteRunningTasks()
TryCancelRunningTasks()
Tries cancel running tasks.
Declaration
void TryCancelRunningTasks()