Class CachingStrategy.Builder
java.lang.Object
co.crystaldev.alpinecore.framework.storage.CachingStrategy.Builder
- Enclosing class:
- CachingStrategy
Used to construct a new
CachingStrategy
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull CachingStrategy
build()
concurrencyLevel
(int concurrencyLevel) expireTime
(long expireTimeValue, TimeUnit expireTimeUnit) expireTimeUnit
(TimeUnit expireTimeUnit) expireTimeValue
(long expireTimeValue) maximumSize
(long maximumSize)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumSize
- See Also:
-
CacheBuilder.maximumSize(long)
-
expireTime
@Contract("_, _ -> this") public CachingStrategy.Builder expireTime(long expireTimeValue, TimeUnit expireTimeUnit) - See Also:
-
CacheBuilder.expireAfterAccess(long, TimeUnit)
-
expireTimeValue
- See Also:
-
CacheBuilder.expireAfterAccess(long, TimeUnit)
-
expireTimeUnit
@Contract("null -> fail; _ -> this") public CachingStrategy.Builder expireTimeUnit(TimeUnit expireTimeUnit) - See Also:
-
CacheBuilder.expireAfterAccess(long, TimeUnit)
-
concurrencyLevel
- See Also:
-
CacheBuilder.concurrencyLevel(int)
-
build
- Returns:
- The newly constructed
CachingStrategy
-