public interface TrackerMap
extends com.hazelcast.nio.Disposable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TrackerMap.Cursor
Cursor over tracker map's entries.
|
| Modifier and Type | Method and Description |
|---|---|
TrackerMap.Cursor |
cursor() |
Tracker |
get(KeyHandle kh)
Returns the tracker mapped by the supplied
KeyHandle, if any; otherwise
returns null. |
Tracker |
putIfAbsent(KeyHandle kh,
long chunkSeq,
boolean isTombstone)
If there is no current mapping for
kh, establishes a mapping from
kh to a tracker defined by (chunkSeq, isTombstone)
and returns null. |
void |
removeIfDead(KeyHandle kh,
Tracker tr)
Removes the entry for
tr if tr represents a dead record. |
void |
removeLiveTombstone(KeyHandle kh)
Removes the entry for
kh assuming that it maps to
a tracker representing a live tombstone. |
long |
size() |
Tracker putIfAbsent(KeyHandle kh, long chunkSeq, boolean isTombstone)
kh, establishes a mapping from
kh to a tracker defined by (chunkSeq, isTombstone)
and returns null. If a mapping already exists, returns the existing
tracker without updating it.Tracker get(KeyHandle kh)
KeyHandle, if any; otherwise
returns null.
Warning! The returned instance is valid only up to the next operation
on this map, including another get. The caller should generally not retain it.void removeLiveTombstone(KeyHandle kh)
kh assuming that it maps to
a tracker representing a live tombstone. This assumption is
not verified.void removeIfDead(KeyHandle kh, Tracker tr)
tr if tr represents a dead record.
tr must be the tracker mapped under kh, but this is not verified.long size()
TrackerMap.Cursor cursor()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.