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 LfuCacheSettingsapply(com.typesafe.config.Config config) static LfuCacheSettingsfinal intfinal intfinal DurationJava APIfinal DurationJava APIabstract intabstract intabstract scala.concurrent.duration.Durationabstract scala.concurrent.duration.DurationwithInitialCapacity(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:
getMaxCapacityin classLfuCacheSettings
-
getInitialCapacity
public final int getInitialCapacity()- Specified by:
getInitialCapacityin classLfuCacheSettings
-
getTimeToLive
Description copied from class:LfuCacheSettingsJava APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Durationtojava.time.Duration.- Specified by:
getTimeToLivein classLfuCacheSettings- Returns:
- (undocumented)
-
getTimeToIdle
Description copied from class:LfuCacheSettingsJava APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Durationtojava.time.Duration.- Specified by:
getTimeToIdlein classLfuCacheSettings- Returns:
- (undocumented)
-
withMaxCapacity
- Overrides:
withMaxCapacityin classLfuCacheSettings
-
withInitialCapacity
- Overrides:
withInitialCapacityin classLfuCacheSettings
-
withTimeToLive
- Overrides:
withTimeToLivein classLfuCacheSettings
-
withTimeToIdle
- Overrides:
withTimeToIdlein classLfuCacheSettings
-