public class PagesWriteThrottle extends Object implements PagesWriteThrottlePolicy
LOGGING_THRESHOLD| Constructor and Description |
|---|
PagesWriteThrottle(PageMemoryImpl pageMemory,
IgniteOutClosure<CheckpointProgress> 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.
|
boolean |
shouldThrottle() |
void |
tryWakeupThrottledThreads()
Callback to try wakeup throttled threads.
|
public PagesWriteThrottle(PageMemoryImpl pageMemory, IgniteOutClosure<CheckpointProgress> 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 PagesWriteThrottlePolicypublic boolean shouldThrottle()
shouldThrottle in interface PagesWriteThrottlePolicyTrue if throttling should be enabled, and False otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020