public class BatchInvalidator extends Invalidator
eventFilter, eventService, logger, metaDataGenerator, nodeEngine, partitionCount, partitionService, serviceName
Constructor and Description |
---|
BatchInvalidator(String serviceName,
int batchSize,
int batchFrequencySeconds,
IFunction<EventRegistration,Boolean> eventFilter,
NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
void |
destroy(String dataStructureName,
String sourceUuid)
Removes supplied data structures invalidation queues and flushes their content.
|
protected void |
invalidateInternal(Invalidation invalidation,
int orderKey) |
protected Invalidation |
newInvalidation(Data key,
String dataStructureName,
String sourceUuid,
int partitionId) |
void |
reset()
Resets this invalidator back to its initial state.
|
void |
shutdown()
Shuts down this invalidator and releases used resources.
|
getMetaDataGenerator, invalidateAllKeys, invalidateKey, newClearInvalidation, sendImmediately
public BatchInvalidator(String serviceName, int batchSize, int batchFrequencySeconds, IFunction<EventRegistration,Boolean> eventFilter, NodeEngine nodeEngine)
protected Invalidation newInvalidation(Data key, String dataStructureName, String sourceUuid, int partitionId)
newInvalidation
in class Invalidator
protected void invalidateInternal(Invalidation invalidation, int orderKey)
invalidateInternal
in class Invalidator
public void destroy(String dataStructureName, String sourceUuid)
Invalidator
MapRemoteService.destroyDistributedObject(String)
destroy
in class Invalidator
dataStructureName
- name of the data structure.MapRemoteService.destroyDistributedObject(String)
public void shutdown()
Invalidator
ManagedService.shutdown(boolean)
shutdown
in class Invalidator
ManagedService.shutdown(boolean)
public void reset()
Invalidator
ManagedService.reset()
reset
in class Invalidator
ManagedService.reset()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.