public interface IracManager
The lockOwner
is the last command (or transaction) who updated the key. It is used to detect conflicting
local updates while sending to the remote backups (sites).
Modifier and Type | Method and Description |
---|---|
void |
cleanupKey(Object key,
Object lockOwner,
IracMetadata tombstone)
Sets the
key as not changed and remove any tombstone related to it. |
void |
onTopologyUpdate(CacheTopology oldCacheTopology,
CacheTopology newCacheTopology)
Notifies a topology changed.
|
void |
receiveState(Object key,
Object lockOwner,
IracMetadata tombstone)
Receives the state related to the
key . |
void |
requestState(Address origin,
IntSet segments)
Requests the state stored in this instance for the given
segments . |
void |
trackClear()
Sets all keys as removed.
|
void |
trackKeysFromTransaction(Stream<WriteCommand> modifications,
GlobalTransaction lockOwner)
Sets all keys affected by the transaction as changed.
|
void |
trackUpdatedKey(Object key,
Object lockOwner)
Sets the
key as changed by the lockOwner . |
<K> void |
trackUpdatedKeys(Collection<K> keys,
Object lockOwner)
Sets all the keys in
keys as changed by the lockOwner . |
void trackUpdatedKey(Object key, Object lockOwner)
key
as changed by the lockOwner
.key
- The key changed.lockOwner
- The lock owner who updated the key.<K> void trackUpdatedKeys(Collection<K> keys, Object lockOwner)
keys
as changed by the lockOwner
.keys
- A Collection
of keys changed.lockOwner
- The lock owner who updated the keys.void trackKeysFromTransaction(Stream<WriteCommand> modifications, GlobalTransaction lockOwner)
modifications
- The Stream
of modifications made by the transaction.lockOwner
- The GlobalTransaction
.void trackClear()
void cleanupKey(Object key, Object lockOwner, IracMetadata tombstone)
key
as not changed and remove any tombstone related to it.
If lockOwner
isn't the last one who updated the key, this method is a no-op.
key
- The key.lockOwner
- The lock owner who updated the key.tombstone
- The tombstone (can be null
).void onTopologyUpdate(CacheTopology oldCacheTopology, CacheTopology newCacheTopology)
oldCacheTopology
- The old CacheTopology
.newCacheTopology
- The new CacheTopology
.void requestState(Address origin, IntSet segments)
segments
.origin
- The requestor.segments
- The segments requested.void receiveState(Object key, Object lockOwner, IracMetadata tombstone)
key
.key
- The key modified.lockOwner
- The last lockOwner
.tombstone
- The tombstone (can be null
)Copyright © 2021 JBoss by Red Hat. All rights reserved.