public final class ExpirationManager extends Object implements LifecycleListener
3.3
and ICache since 3.11
Constructor and Description |
---|
ExpirationManager(ClearExpiredRecordsTask task,
NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
void |
onClusterStateChange(ClusterState newState) |
void |
scheduleExpirationTask()
Starts scheduling of the task that clears expired entries.
|
void |
stateChanged(LifecycleEvent event)
Called when instance's state changes.
|
public ExpirationManager(ClearExpiredRecordsTask task, NodeEngine nodeEngine)
public void scheduleExpirationTask()
public void stateChanged(LifecycleEvent event)
LifecycleListener
stateChanged
in interface LifecycleListener
event
- the Lifecycle eventpublic void onClusterStateChange(ClusterState newState)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.