Class AbstractCacheEntryMutator
java.lang.Object
org.wildfly.clustering.cache.infinispan.AbstractCacheEntryMutator
- All Implemented Interfaces:
Runnable, Supplier<Duration>, CacheEntryMutator, Runner
- Direct Known Subclasses:
EmbeddedCacheEntryComputer, EmbeddedCacheEntryMutator, RemoteCacheEntryComputer, RemoteCacheEntryMutator
public abstract class AbstractCacheEntryMutator
extends Object
implements CacheEntryMutator, Supplier<Duration>
Abstract mutator providing max-idle customization.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface CacheEntryMutator
EMPTY, LOGGER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a immortal cache entry mutator. -
Method Summary
Modifier and TypeMethodDescriptionget()withMaxIdle(Supplier<Duration> maxIdle) Applies a maximum idle duration to the mutated cache entry.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CacheEntryMutator
run, runAsync
-
Constructor Details
-
AbstractCacheEntryMutator
protected AbstractCacheEntryMutator()Creates a immortal cache entry mutator.
-
-
Method Details
-
withMaxIdle
Description copied from interface:CacheEntryMutatorApplies a maximum idle duration to the mutated cache entry.- Specified by:
withMaxIdlein interfaceCacheEntryMutator- Parameters:
maxIdle- a provider of a maximum idle duration- Returns:
- a reference to this mutator.
-
get
-