public class NoOpIracManager extends Object implements IracManager
IracManager for cache without asynchronous remote site backups.| 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. |
static NoOpIracManager |
getInstance() |
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. |
public static NoOpIracManager getInstance()
public void trackUpdatedKey(Object key, Object lockOwner)
IracManagerkey as changed by the lockOwner.trackUpdatedKey in interface IracManagerkey - The key changed.lockOwner - The lock owner who updated the key.public <K> void trackUpdatedKeys(Collection<K> keys, Object lockOwner)
IracManagerkeys as changed by the lockOwner.trackUpdatedKeys in interface IracManagerkeys - A Collection of keys changed.lockOwner - The lock owner who updated the keys.public void trackKeysFromTransaction(Stream<WriteCommand> modifications, GlobalTransaction lockOwner)
IracManagertrackKeysFromTransaction in interface IracManagermodifications - The Stream of modifications made by the transaction.lockOwner - The GlobalTransaction.public void trackClear()
IracManagertrackClear in interface IracManagerpublic void cleanupKey(Object key, Object lockOwner, IracMetadata tombstone)
IracManagerkey 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.
cleanupKey in interface IracManagerkey - The key.lockOwner - The lock owner who updated the key.tombstone - The tombstone (can be null).public void onTopologyUpdate(CacheTopology oldCacheTopology, CacheTopology newCacheTopology)
IracManageronTopologyUpdate in interface IracManageroldCacheTopology - The old CacheTopology.newCacheTopology - The new CacheTopology.public void requestState(Address origin, IntSet segments)
IracManagersegments.requestState in interface IracManagerorigin - The requestor.segments - The segments requested.public void receiveState(Object key, Object lockOwner, IracMetadata tombstone)
IracManagerkey.receiveState in interface IracManagerkey - The key modified.lockOwner - The last lockOwner.tombstone - The tombstone (can be null)Copyright © 2022 JBoss by Red Hat. All rights reserved.