public class GcExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COLLECTOR_QUEUE_CAPACITY
Capacity of the work queue which is used by the mutator thread to submit tasks to the GC thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
runWhileGcPaused(MutatorCatchup.CatchupRunnable task)
Runs the task while holding a mutex lock which is also held during GC activity.
|
void |
shutdown()
Asks the GC thread to stop and awaits its completion.
|
void |
start()
Starts the GC thread.
|
void |
submitBackup(File targetDir) |
void |
submitRecord(HotRestartKey key,
long freshSeq,
int freshSize,
boolean freshIsTombstone)
Submits a "record added" event to the GC thread's work queue.
|
void |
submitReplaceActiveChunk(ActiveChunk closed,
ActiveChunk fresh)
Submits a "active chunk replaced" event to the GC thread's work queue.
|
public static final int COLLECTOR_QUEUE_CAPACITY
public void start()
public void shutdown()
public void submitRecord(HotRestartKey key, long freshSeq, int freshSize, boolean freshIsTombstone)
public void submitReplaceActiveChunk(ActiveChunk closed, ActiveChunk fresh)
public void runWhileGcPaused(MutatorCatchup.CatchupRunnable task)
public void submitBackup(File targetDir)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.