Class LfuCacheSettings
java.lang.Object
org.apache.pekko.http.caching.javadsl.LfuCacheSettings
- Direct Known Subclasses:
LfuCacheSettings
Public API but not intended for subclassing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LfuCacheSettingscreate(com.typesafe.config.Config config) static LfuCacheSettingsabstract intabstract intabstract DurationJava APIabstract DurationJava APIwithInitialCapacity(int newInitialCapacity) withMaxCapacity(int newMaxCapacity) withTimeToIdle(Duration newTimeToIdle) Java APIwithTimeToIdle(scala.concurrent.duration.Duration newTimeToIdle) withTimeToLive(Duration newTimeToLive) Java APIwithTimeToLive(scala.concurrent.duration.Duration newTimeToLive)
-
Constructor Details
-
LfuCacheSettings
public LfuCacheSettings()
-
-
Method Details
-
create
-
create
-
getMaxCapacity
public abstract int getMaxCapacity() -
getInitialCapacity
public abstract int getInitialCapacity() -
getTimeToLive
Java APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Durationtojava.time.Duration.- Returns:
- (undocumented)
-
getTimeToIdle
Java APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Durationtojava.time.Duration.- Returns:
- (undocumented)
-
withMaxCapacity
-
withInitialCapacity
-
withTimeToLive
-
withTimeToLive
Java API- Parameters:
newTimeToLive- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withTimeToIdle
-
withTimeToIdle
Java API- Parameters:
newTimeToIdle- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-