Cache.EventPublisher, Cache.Metrics
Constructor and Description |
---|
CacheImpl(javax.cache.Cache<K,V> cache) |
Modifier and Type | Method and Description |
---|---|
V |
computeIfAbsent(K cacheKey,
io.vavr.CheckedFunction0<V> supplier)
If the key is not already associated with a cached value, attempts to compute its value using the
given supplier and puts it into the cache.
|
Cache.EventPublisher |
getEventPublisher()
Returns an EventPublisher which can be used to register event consumers.
|
Cache.Metrics |
getMetrics()
Returns the Metrics of this Cache.
|
java.lang.String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decorateCallable, decorateCheckedSupplier, decorateSupplier, of
public java.lang.String getName()
public Cache.Metrics getMetrics()
Cache
getMetrics
in interface Cache<K,V>
public V computeIfAbsent(K cacheKey, io.vavr.CheckedFunction0<V> supplier)
Cache
computeIfAbsent
in interface Cache<K,V>
cacheKey
- key with which the specified value is to be associatedsupplier
- value to be associated with the specified keypublic Cache.EventPublisher getEventPublisher()
Cache
getEventPublisher
in interface Cache<K,V>