public class PagesWriteThrottle extends Object implements PagesWriteThrottlePolicy
LOGGING_THRESHOLD| Constructor and Description |
|---|
PagesWriteThrottle(PageMemoryImpl pageMemory,
CheckpointWriteProgressSupplier cpProgress,
CheckpointLockStateChecker stateChecker,
boolean throttleOnlyPagesInCheckpoint,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
onBeginCheckpoint()
Callback to notify throttling policy checkpoint was started.
|
void |
onFinishCheckpoint()
Callback to notify throttling policy checkpoint was finished.
|
void |
onMarkDirty(boolean isPageInCheckpoint)
Callback to apply throttling delay.
|
void |
tryWakeupThrottledThreads()
Callback to try wakeup throttled threads.
|
public PagesWriteThrottle(PageMemoryImpl pageMemory, CheckpointWriteProgressSupplier cpProgress, CheckpointLockStateChecker stateChecker, boolean throttleOnlyPagesInCheckpoint, IgniteLogger log)
pageMemory - Page memory.cpProgress - Database manager.stateChecker - checkpoint lock state checker.throttleOnlyPagesInCheckpoint - If true, throttle will only protect from checkpoint buffer overflow.log - Logger.public void onMarkDirty(boolean isPageInCheckpoint)
onMarkDirty in interface PagesWriteThrottlePolicyisPageInCheckpoint - flag indicating if current page is in scope of current checkpoint.public void tryWakeupThrottledThreads()
tryWakeupThrottledThreads in interface PagesWriteThrottlePolicypublic void onBeginCheckpoint()
onBeginCheckpoint in interface PagesWriteThrottlePolicypublic void onFinishCheckpoint()
onFinishCheckpoint in interface PagesWriteThrottlePolicy
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020