public abstract class Invalidator extends Object
Invalidator
Modifier and Type | Field and Description |
---|---|
protected EventService |
eventService |
protected ILogger |
logger |
protected MapServiceContext |
mapServiceContext |
protected MetaDataGenerator |
metaDataGenerator |
protected NodeEngine |
nodeEngine |
protected int |
partitionCount |
protected IPartitionService |
partitionService |
protected SerializationService |
serializationService |
Constructor and Description |
---|
Invalidator(MapServiceContext mapServiceContext) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canSendInvalidation(EventFilter filter) |
void |
destroy(String mapName,
String sourceUuid)
Removes supplied maps invalidation queue and flushes its content.
|
MetaDataGenerator |
getMetaDataGenerator() |
protected int |
getPartitionId(Data o) |
protected int |
getPartitionId(Object o) |
void |
invalidateAllKeys(String mapName,
String sourceUuid)
Invalidates all keys from near-caches of supplied map name.
|
protected abstract void |
invalidateInternal(Invalidation invalidation,
int orderKey) |
void |
invalidateKey(Data key,
String mapName,
String sourceUuid)
Invalidates supplied key from near-caches of supplied map name.
|
protected Invalidation |
newClearInvalidation(String mapName,
String sourceUuid) |
protected Invalidation |
newKeyInvalidation(Data key,
String mapName,
String sourceUuid) |
void |
reset()
Resets this invalidator back to its initial state.
|
void |
shutdown()
Shuts down this invalidator and releases used resources.
|
protected final ILogger logger
protected final int partitionCount
protected final MapServiceContext mapServiceContext
protected final NodeEngine nodeEngine
protected final EventService eventService
protected final SerializationService serializationService
protected final MetaDataGenerator metaDataGenerator
protected final IPartitionService partitionService
public Invalidator(MapServiceContext mapServiceContext)
public final void invalidateKey(Data key, String mapName, String sourceUuid)
key
- key of the entry to be removed from near-cachemapName
- name of the map to be invalidatedpublic final void invalidateAllKeys(String mapName, String sourceUuid)
mapName
- name of the map to be clearedprotected abstract void invalidateInternal(Invalidation invalidation, int orderKey)
public MetaDataGenerator getMetaDataGenerator()
protected final Invalidation newKeyInvalidation(Data key, String mapName, String sourceUuid)
protected final Invalidation newClearInvalidation(String mapName, String sourceUuid)
protected final int getPartitionId(Data o)
protected final int getPartitionId(Object o)
protected final boolean canSendInvalidation(EventFilter filter)
public void destroy(String mapName, String sourceUuid)
MapRemoteService.destroyDistributedObject(String)
mapName
- name of the map.MapRemoteService.destroyDistributedObject(String)
public void reset()
ManagedService.reset()
ManagedService.reset()
public void shutdown()
ManagedService.shutdown(boolean)
ManagedService.shutdown(boolean)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.