Package org.wildfly.clustering.ee.cache
Class ConcurrentManager<K,V>
- java.lang.Object
-
- org.wildfly.clustering.ee.cache.ConcurrentManager<K,V>
-
- Type Parameters:
K- the key typeV- the type of the managed value
- All Implemented Interfaces:
BiFunction<K,Function<Runnable,V>,V>,Manager<K,V>
public class ConcurrentManager<K,V> extends Object implements Manager<K,V>
Manages creation and destruction of values to be shared across threads.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ConcurrentManager(Consumer<V> createTask, Consumer<V> closeTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vapply(K key, Function<Runnable,V> factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-