public class PartitionIndexOperationStats extends Object implements IndexOperationStats
EMPTY
Constructor and Description |
---|
PartitionIndexOperationStats() |
Modifier and Type | Method and Description |
---|---|
long |
getEntryCountDelta()
Returns the indexed entry count delta produced as a result of an index
operation.
|
long |
getMemoryCostDelta()
Returns the memory cost delta produced as a result of an index operation.
|
void |
onEntryAdded(Object replacedValue,
Object addedValue)
Invoked by the associated index on every entry addition.
|
void |
onEntryRemoved(Object removedValue)
Invoked by the associated index on every entry removal.
|
void |
reset()
Resets this stats instance to be ready for reuse.
|
public long getEntryCountDelta()
IndexOperationStats
getEntryCountDelta
in interface IndexOperationStats
public long getMemoryCostDelta()
IndexOperationStats
getMemoryCostDelta
in interface IndexOperationStats
public void onEntryAdded(Object replacedValue, Object addedValue)
IndexOperationStats
onEntryAdded
in interface IndexOperationStats
replacedValue
- the old replaced value or null
if no value
was associated with an index key for which an
operation was performed.addedValue
- the new added value.public void onEntryRemoved(Object removedValue)
IndexOperationStats
onEntryRemoved
in interface IndexOperationStats
removedValue
- the old removed value or null
if no value
was associated with an index key for which an
operation was performed.public void reset()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.