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 LfuCacheSettings
create
(com.typesafe.config.Config config) static LfuCacheSettings
abstract int
abstract int
abstract Duration
Java APIabstract Duration
Java 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.Duration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getTimeToIdle
Java APIIn 2.0.0, the return type of this method changed from
scala.concurrent.duration.Duration
tojava.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
-