public class PagesWriteThrottle extends Object implements PagesWriteThrottlePolicy
| Constructor and Description |
|---|
PagesWriteThrottle(PageMemoryImpl pageMemory,
CheckpointWriteProgressSupplier cpProgress,
CheckpointLockStateChecker stateChecker,
boolean throttleOnlyPagesInCheckpoint) |
| 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.
|
public PagesWriteThrottle(PageMemoryImpl pageMemory, CheckpointWriteProgressSupplier cpProgress, CheckpointLockStateChecker stateChecker, boolean throttleOnlyPagesInCheckpoint)
pageMemory - Page memory.cpProgress - Database manager.stateChecker - checkpoint lock state checker.throttleOnlyPagesInCheckpoint - If true, throttle will only protect from checkpoint buffer overflow.public void onMarkDirty(boolean isPageInCheckpoint)
onMarkDirty in interface PagesWriteThrottlePolicyisPageInCheckpoint - flag indicating if current page is in scope of current checkpoint.public void onBeginCheckpoint()
onBeginCheckpoint in interface PagesWriteThrottlePolicypublic void onFinishCheckpoint()
onFinishCheckpoint in interface PagesWriteThrottlePolicy
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018