Package akka.http.caching.scaladsl
Class LfuCacheSettings
- java.lang.Object
-
- akka.http.caching.javadsl.LfuCacheSettings
-
- akka.http.caching.scaladsl.LfuCacheSettings
-
- Direct Known Subclasses:
LfuCachingSettingsImpl
public abstract class LfuCacheSettings extends LfuCacheSettings
Public API but not intended for subclassing
-
-
Constructor Summary
Constructors Constructor Description LfuCacheSettings()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LfuCacheSettings
apply(com.typesafe.config.Config config)
static LfuCacheSettings
apply(java.lang.String configOverrides)
int
getInitialCapacity()
int
getMaxCapacity()
scala.concurrent.duration.Duration
getTimeToIdle()
scala.concurrent.duration.Duration
getTimeToLive()
abstract int
initialCapacity()
abstract int
maxCapacity()
abstract scala.concurrent.duration.Duration
timeToIdle()
abstract scala.concurrent.duration.Duration
timeToLive()
LfuCacheSettings
withInitialCapacity(int newInitialCapacity)
LfuCacheSettings
withMaxCapacity(int newMaxCapacity)
LfuCacheSettings
withTimeToIdle(scala.concurrent.duration.Duration newTimeToIdle)
LfuCacheSettings
withTimeToLive(scala.concurrent.duration.Duration newTimeToLive)
-
Methods inherited from class akka.http.caching.javadsl.LfuCacheSettings
create, create
-
-
-
-
Method Detail
-
apply
public static LfuCacheSettings apply(com.typesafe.config.Config config)
-
apply
public static LfuCacheSettings apply(java.lang.String configOverrides)
-
maxCapacity
public abstract int maxCapacity()
-
initialCapacity
public abstract int initialCapacity()
-
timeToLive
public abstract scala.concurrent.duration.Duration timeToLive()
-
timeToIdle
public abstract scala.concurrent.duration.Duration timeToIdle()
-
getMaxCapacity
public final int getMaxCapacity()
- Specified by:
getMaxCapacity
in classLfuCacheSettings
-
getInitialCapacity
public final int getInitialCapacity()
- Specified by:
getInitialCapacity
in classLfuCacheSettings
-
getTimeToLive
public final scala.concurrent.duration.Duration getTimeToLive()
- Specified by:
getTimeToLive
in classLfuCacheSettings
-
getTimeToIdle
public final scala.concurrent.duration.Duration getTimeToIdle()
- Specified by:
getTimeToIdle
in classLfuCacheSettings
-
withMaxCapacity
public LfuCacheSettings withMaxCapacity(int newMaxCapacity)
- Overrides:
withMaxCapacity
in classLfuCacheSettings
-
withInitialCapacity
public LfuCacheSettings withInitialCapacity(int newInitialCapacity)
- Overrides:
withInitialCapacity
in classLfuCacheSettings
-
withTimeToLive
public LfuCacheSettings withTimeToLive(scala.concurrent.duration.Duration newTimeToLive)
- Overrides:
withTimeToLive
in classLfuCacheSettings
-
withTimeToIdle
public LfuCacheSettings withTimeToIdle(scala.concurrent.duration.Duration newTimeToIdle)
- Overrides:
withTimeToIdle
in classLfuCacheSettings
-
-