Package org.infinispan.expiration
Interface ExpirationManager<K,V>
- All Known Subinterfaces:
InternalExpirationManager<K,
V>
- All Known Implementing Classes:
ClusterExpirationManager
,ExpirationManagerImpl
,TxClusterExpirationManager
@ThreadSafe
public interface ExpirationManager<K,V>
Central component that deals with expiration of cache entries.
Typically,
processExpiration()
is called periodically by the expiration thread (which can be configured using
ExpirationConfigurationBuilder.wakeUpInterval(long)
and GlobalConfigurationBuilder.expirationThreadPool()
).
If the expiration thread is disabled - by setting ExpirationConfigurationBuilder.wakeUpInterval(long)
to 0 -
then this method could be called directly, perhaps by any other maintenance thread that runs periodically in the application.
- Since:
- 7.2
- Author:
- William Burns
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Processes the expiration event queue.
-
Method Details
-
processExpiration
void processExpiration()Processes the expiration event queue. -
isEnabled
boolean isEnabled()- Returns:
- true if expiration reaper thread is enabled, false otherwise
-