Class LfuCacheSettings
java.lang.Object
org.apache.pekko.http.caching.javadsl.LfuCacheSettings
org.apache.pekko.http.caching.scaladsl.LfuCacheSettings
- Direct Known Subclasses:
LfuCachingSettingsImpl
Public API but not intended for subclassing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LfuCacheSettings
apply
(com.typesafe.config.Config config) static LfuCacheSettings
final int
final int
final Duration
Java APIfinal Duration
Java APIabstract int
abstract int
abstract scala.concurrent.duration.Duration
abstract scala.concurrent.duration.Duration
withInitialCapacity
(int newInitialCapacity) withMaxCapacity
(int newMaxCapacity) withTimeToIdle
(scala.concurrent.duration.Duration newTimeToIdle) withTimeToLive
(scala.concurrent.duration.Duration newTimeToLive) Methods inherited from class org.apache.pekko.http.caching.javadsl.LfuCacheSettings
create, create, withTimeToIdle, withTimeToLive
-
Constructor Details
-
LfuCacheSettings
public LfuCacheSettings()
-
-
Method Details
-
apply
-
apply
-
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
Description copied from class:LfuCacheSettings
Java APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Duration
tojava.time.Duration
.- Specified by:
getTimeToLive
in classLfuCacheSettings
- Returns:
- (undocumented)
-
getTimeToIdle
Description copied from class:LfuCacheSettings
Java APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Duration
tojava.time.Duration
.- Specified by:
getTimeToIdle
in classLfuCacheSettings
- Returns:
- (undocumented)
-
withMaxCapacity
- Overrides:
withMaxCapacity
in classLfuCacheSettings
-
withInitialCapacity
- Overrides:
withInitialCapacity
in classLfuCacheSettings
-
withTimeToLive
- Overrides:
withTimeToLive
in classLfuCacheSettings
-
withTimeToIdle
- Overrides:
withTimeToIdle
in classLfuCacheSettings
-