public class NearCacheInvalidatorImpl extends Object implements NearCacheInvalidator
NearCacheInvalidator
NearCacheInvalidator
Modifier and Type | Method and Description |
---|---|
void |
accumulateOrSendBatchInvalidation(String mapName,
Data key) |
void |
clearLocalNearCache(String mapName,
String sourceUuid)
Only clears local near-cache.
|
void |
clearNearCaches(String mapName,
boolean owner,
String sourceUuid)
Clears local and remote near-caches.
|
void |
flushAndRemoveInvalidationQueue(String mapName)
Removes supplied maps invalidation queue and flushes its content.
|
static Object |
getOrderKey(String mapName,
Invalidation invalidation) |
protected boolean |
hasInvalidationListener(String mapName) |
void |
invalidateLocalNearCache(String mapName,
Collection<Data> keys)
Only invalidates local near-cache on a node.
|
void |
invalidateLocalNearCache(String mapName,
Data key)
Only invalidates local near-cache on a node.
|
void |
invalidateNearCaches(String mapName,
Data key,
String sourceUuid)
Invalidates local and remote near-caches.
|
void |
invalidateNearCaches(String mapName,
List<Data> keys,
String sourceUuid)
Invalidates local and remote near-caches.
|
void |
reset()
Resets this invalidator back to its initial state.
|
void |
shutdown()
Shuts down this invalidator and releases used resources.
|
public void invalidateLocalNearCache(String mapName, Data key)
NearCacheInvalidator
invalidateLocalNearCache
in interface NearCacheInvalidator
mapName
- name of the map.key
- key of the entry to be removed.public void invalidateLocalNearCache(String mapName, Collection<Data> keys)
NearCacheInvalidator
invalidateLocalNearCache
in interface NearCacheInvalidator
mapName
- name of the map.keys
- keys of the entries to be removed.public void clearLocalNearCache(String mapName, String sourceUuid)
NearCacheInvalidator
clearLocalNearCache
in interface NearCacheInvalidator
mapName
- name of the map.sourceUuid
- caller uuidpublic void clearNearCaches(String mapName, boolean owner, String sourceUuid)
NearCacheInvalidator
clearNearCaches
in interface NearCacheInvalidator
mapName
- name of the map.owner
- true
if this method is called from partition owner, otherwise false
.sourceUuid
- caller uuidpublic void invalidateNearCaches(String mapName, Data key, String sourceUuid)
NearCacheInvalidator
invalidateNearCaches
in interface NearCacheInvalidator
mapName
- name of the map.key
- key of the entry to be removed.sourceUuid
- caller uuidpublic void invalidateNearCaches(String mapName, List<Data> keys, String sourceUuid)
NearCacheInvalidator
invalidateNearCaches
in interface NearCacheInvalidator
mapName
- name of the map.keys
- keys of the entries to be removed.sourceUuid
- caller uuidpublic void flushAndRemoveInvalidationQueue(String mapName)
NearCacheInvalidator
MapRemoteService.destroyDistributedObject(String)
flushAndRemoveInvalidationQueue
in interface NearCacheInvalidator
mapName
- name of the map.MapRemoteService.destroyDistributedObject(String)
public void shutdown()
NearCacheInvalidator
ManagedService.shutdown(boolean)
shutdown
in interface NearCacheInvalidator
com.hazelcast.spi.ManagedService#shutdown(boolean)}
public void reset()
NearCacheInvalidator
ManagedService.reset()
reset
in interface NearCacheInvalidator
ManagedService#reset()}
public void accumulateOrSendBatchInvalidation(String mapName, Data key)
protected boolean hasInvalidationListener(String mapName)
public static Object getOrderKey(String mapName, Invalidation invalidation)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.