@ThreadSafe
public interface ExpirationManager<K,V>
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.
| Modifier and Type | Method and Description |
|---|---|
void |
handleInMemoryExpiration(InternalCacheEntry<K,V> entry,
long currentTime)
Deprecated.
since 9.3 this method is not intended for external use
|
void |
handleInStoreExpiration(K key)
Deprecated.
since 9.3 this method is not intended for external use
|
void |
handleInStoreExpiration(MarshallableEntry<K,V> marshalledEntry)
Deprecated.
since 9.3 this method is not intended for external use
|
boolean |
isEnabled() |
void |
processExpiration()
Processes the expiration event queue.
|
default void |
registerWriteIncoming(K key)
Deprecated.
since 9.3 There is no reason for this method and is implementation specific
|
default void |
unregisterWrite(K key)
Deprecated.
since 9.3 There is no reason for this method and is implementation specific
|
void processExpiration()
boolean isEnabled()
@Deprecated void handleInMemoryExpiration(InternalCacheEntry<K,V> entry, long currentTime)
entry - entry that is now expiredcurrentTime - the current time in milliseconds@Deprecated void handleInStoreExpiration(K key)
Note this method doesn't currently take a InternalCacheEntry and this is due to a limitation in the
cache store API. This may cause some values to be removed if they were updated at the same time.
key - the key of the expired entry@Deprecated void handleInStoreExpiration(MarshallableEntry<K,V> marshalledEntry)
handleInStoreExpiration(Object) as it allows for more
specific expiration to possibly occur.marshalledEntry - the entry that can be unmarshalled as needed@Deprecated default void registerWriteIncoming(K key)
key - the key to use@Deprecated default void unregisterWrite(K key)
key - the key to useCopyright © 2022 JBoss by Red Hat. All rights reserved.