public interface IndexOperationStats
Instances of implementing classes are assumed to be used by a single thread at any given time. Therefore, implementations are not required to be thread-safe.
Modifier and Type | Field and Description |
---|---|
static IndexOperationStats |
EMPTY
Empty no-op index operation stats instance.
|
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.
|
static final IndexOperationStats EMPTY
long getEntryCountDelta()
long getMemoryCostDelta()
void onEntryAdded(Object replacedValue, Object addedValue)
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.void onEntryRemoved(Object removedValue)
removedValue
- the old removed value or null
if no value
was associated with an index key for which an
operation was performed.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.