public class LfuCache$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LfuCache$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
LfuCache$() |
Modifier and Type | Method and Description |
---|---|
<K,V> Cache<K,V> |
apply(org.apache.pekko.actor.ActorSystem system) |
<K,V> Cache<K,V> |
apply(CachingSettings cachingSettings)
Creates a new
pekko.http.caching.LfuCache , with optional expiration depending
on whether a non-zero and finite timeToLive and/or timeToIdle is set or not. |
<K,V> Cache<K,V> |
create(org.apache.pekko.actor.ActorSystem system)
Java API
Creates a new
pekko.http.caching.LfuCache using configuration of the system,
with optional expiration depending on whether a non-zero and finite timeToLive and/or timeToIdle is set or not. |
<K,V> Cache<K,V> |
create(CachingSettings settings)
Java API
Creates a new
pekko.http.caching.LfuCache , with optional expiration depending
on whether a non-zero and finite timeToLive and/or timeToIdle is set or not. |
<K,V> java.util.function.BiFunction<K,java.util.concurrent.Executor,java.util.concurrent.CompletableFuture<V>> |
toJavaMappingFunction(scala.Function0<scala.concurrent.Future<V>> genValue) |
<K,V> java.util.function.BiFunction<K,java.util.concurrent.Executor,java.util.concurrent.CompletableFuture<V>> |
toJavaMappingFunction(scala.Function1<K,scala.concurrent.Future<V>> loadValue) |
public static final LfuCache$ MODULE$
public <K,V> Cache<K,V> apply(org.apache.pekko.actor.ActorSystem system)
public <K,V> Cache<K,V> apply(CachingSettings cachingSettings)
pekko.http.caching.LfuCache
, with optional expiration depending
on whether a non-zero and finite timeToLive and/or timeToIdle is set or not.cachingSettings
- (undocumented)public <K,V> Cache<K,V> create(org.apache.pekko.actor.ActorSystem system)
pekko.http.caching.LfuCache
using configuration of the system,
with optional expiration depending on whether a non-zero and finite timeToLive and/or timeToIdle is set or not.system
- (undocumented)public <K,V> Cache<K,V> create(CachingSettings settings)
pekko.http.caching.LfuCache
, with optional expiration depending
on whether a non-zero and finite timeToLive and/or timeToIdle is set or not.settings
- (undocumented)public <K,V> java.util.function.BiFunction<K,java.util.concurrent.Executor,java.util.concurrent.CompletableFuture<V>> toJavaMappingFunction(scala.Function0<scala.concurrent.Future<V>> genValue)
public <K,V> java.util.function.BiFunction<K,java.util.concurrent.Executor,java.util.concurrent.CompletableFuture<V>> toJavaMappingFunction(scala.Function1<K,scala.concurrent.Future<V>> loadValue)