public abstract class LfuCacheSettings extends LfuCacheSettings
Constructor and Description |
---|
LfuCacheSettings() |
Modifier and Type | Method and 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) |
create, create
public static LfuCacheSettings apply(com.typesafe.config.Config config)
public static LfuCacheSettings apply(java.lang.String configOverrides)
public abstract int maxCapacity()
public abstract int initialCapacity()
public abstract scala.concurrent.duration.Duration timeToLive()
public abstract scala.concurrent.duration.Duration timeToIdle()
public final int getMaxCapacity()
getMaxCapacity
in class LfuCacheSettings
public final int getInitialCapacity()
getInitialCapacity
in class LfuCacheSettings
public final scala.concurrent.duration.Duration getTimeToLive()
getTimeToLive
in class LfuCacheSettings
public final scala.concurrent.duration.Duration getTimeToIdle()
getTimeToIdle
in class LfuCacheSettings
public LfuCacheSettings withMaxCapacity(int newMaxCapacity)
withMaxCapacity
in class LfuCacheSettings
public LfuCacheSettings withInitialCapacity(int newInitialCapacity)
withInitialCapacity
in class LfuCacheSettings
public LfuCacheSettings withTimeToLive(scala.concurrent.duration.Duration newTimeToLive)
withTimeToLive
in class LfuCacheSettings
public LfuCacheSettings withTimeToIdle(scala.concurrent.duration.Duration newTimeToIdle)
withTimeToIdle
in class LfuCacheSettings