public class Rebuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(RestartItem item)
Called when encountering a record which is not interred by a prefix tombstone.
|
void |
acceptCleared(RestartItem item)
Called when encountering a record which is interred by a prefix tombstone.
|
void |
done()
Called when done reading.
|
long |
maxChunkSeq() |
void |
preAccept(long seq,
int size)
To be called for each encountered record and followed with a call to either
accept(RestartItem) or
acceptCleared(RestartItem). |
void |
setMaxSeq(long maxSeq) |
void |
startValuePhase(Map<Long,SetOfKeyHandle> tombKeys)
The Hot Restart procedure starts with the tombstone chunk reading phase and this method is called
when transitioning into the value chunk reading phase.
|
public void setMaxSeq(long maxSeq)
public long maxChunkSeq()
public void startValuePhase(Map<Long,SetOfKeyHandle> tombKeys)
tombKeys - map containing the key handles of all reloaded tombstone keyspublic void preAccept(long seq,
int size)
accept(RestartItem) or
acceptCleared(RestartItem).seq - record seqsize - record sizepublic void acceptCleared(RestartItem item)
public boolean accept(RestartItem item)
false if the accepted record is known to be garbage; true otherwise.public void done()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.