public abstract class LfuCacheSettings
extends java.lang.Object
Constructor and Description |
---|
LfuCacheSettings() |
Modifier and Type | Method and Description |
---|---|
static LfuCacheSettings |
create(com.typesafe.config.Config config) |
static LfuCacheSettings |
create(java.lang.String configOverrides) |
abstract int |
getInitialCapacity() |
abstract int |
getMaxCapacity() |
abstract scala.concurrent.duration.Duration |
getTimeToIdle() |
abstract scala.concurrent.duration.Duration |
getTimeToLive() |
LfuCacheSettings |
withInitialCapacity(int newInitialCapacity) |
LfuCacheSettings |
withMaxCapacity(int newMaxCapacity) |
LfuCacheSettings |
withTimeToIdle(scala.concurrent.duration.Duration newTimeToIdle) |
LfuCacheSettings |
withTimeToLive(scala.concurrent.duration.Duration newTimeToLive) |
public static LfuCacheSettings create(com.typesafe.config.Config config)
public static LfuCacheSettings create(java.lang.String configOverrides)
public abstract int getMaxCapacity()
public abstract int getInitialCapacity()
public abstract scala.concurrent.duration.Duration getTimeToLive()
public abstract scala.concurrent.duration.Duration getTimeToIdle()
public LfuCacheSettings withMaxCapacity(int newMaxCapacity)
public LfuCacheSettings withInitialCapacity(int newInitialCapacity)
public LfuCacheSettings withTimeToLive(scala.concurrent.duration.Duration newTimeToLive)
public LfuCacheSettings withTimeToIdle(scala.concurrent.duration.Duration newTimeToIdle)