public class CommitManager extends Object
Constructor and Description |
---|
CommitManager() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
commit(CacheEntry entry,
Flag operation,
int segment,
boolean l1Only,
InvocationContext ctx)
It tries to commit the cache entry.
|
boolean |
isEmpty() |
boolean |
isTracking(Flag trackFlag) |
void |
startTrack(Flag track)
It starts tracking keys committed.
|
void |
stopTrack(Flag track)
It stops tracking keys committed.
|
String |
toString() |
public final void startTrack(Flag track)
track
- Flag to start tracking keys for local site state transfer or for remote site state transfer.public final void stopTrack(Flag track)
track
- Flag to stop tracking keys for local site state transfer or for remote site state transfer.public final CompletionStage<Void> commit(CacheEntry entry, Flag operation, int segment, boolean l1Only, InvocationContext ctx)
entry
- the entry to commitoperation
- if null
, it identifies this commit as originated from a normal operation. Otherwise, itctx
- public final boolean isTracking(Flag trackFlag)
true
if the flag is being tracked, false
otherwise.public final boolean isEmpty()
true
if no keys are tracked, false
otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.