R
- The type of the records in the observed RecordStore
public interface RecordStoreMutationObserver<R extends Record>
RecordStore
mutationsModifier and Type | Method and Description |
---|---|
void |
onClear()
Called if the observed
RecordStore is cleared |
void |
onDestroy(boolean internal)
Called when the observed
RecordStore is being destroyed. |
void |
onEvictRecord(Data key,
R record)
Called when a record is evicted from the observed
RecordStore |
void |
onLoadRecord(Data key,
R record)
Called when a record is loaded into the observed
RecordStore |
void |
onPutRecord(Data key,
R record)
Called when a new record is added to the
RecordStore |
void |
onRemoveRecord(Data key,
R record)
Called when a record is removed from the observed
RecordStore |
void |
onReplicationPutRecord(Data key,
R record)
Called when a new record is added to the
RecordStore due
to replication |
void |
onReset()
Called when the observed
RecordStore is being reset. |
void |
onUpdateRecord(Data key,
R record,
Object newValue)
Called when a new record is updated in the observed
RecordStore |
void onClear()
RecordStore
is clearedvoid onPutRecord(Data key, R record)
RecordStore
key
- The key of the recordrecord
- The recordvoid onReplicationPutRecord(Data key, R record)
RecordStore
due
to replicationkey
- The key of the recordrecord
- The recordvoid onUpdateRecord(Data key, R record, Object newValue)
RecordStore
key
- The key of the recordrecord
- The recordnewValue
- The new value of the recordvoid onRemoveRecord(Data key, R record)
RecordStore
key
- The key of the recordrecord
- The recordvoid onEvictRecord(Data key, R record)
RecordStore
key
- The key of the recordrecord
- The recordvoid onLoadRecord(Data key, R record)
RecordStore
key
- The key of the recordrecord
- The recordvoid onDestroy(boolean internal)
RecordStore
is being destroyed.
The observer should release all resources. The implementations of
this method should be idempotent.internal
- is only data bound to the MapService
being destroyedvoid onReset()
RecordStore
is being reset.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.