public static class ConcurrentLRUTemplateCache.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentLRUTemplateCache |
build()
Builder method to build an instance of ConcurrentLRUTemplateCache.
|
ConcurrentLRUTemplateCache.Builder |
withCapacity(long capacity)
Add custom cache capacity to ConcurrentLRUTemplateCache.
|
ConcurrentLRUTemplateCache.Builder |
withLiveTimeThreshold(long liveTimeThreshold)
Add custom TTL to ConcurrentLRUTemplateCache.
|
public ConcurrentLRUTemplateCache.Builder withCapacity(long capacity)
capacity - custom capacity.ConcurrentLRUTemplateCache.Builder.public ConcurrentLRUTemplateCache.Builder withLiveTimeThreshold(long liveTimeThreshold)
liveTimeThreshold - custom TTL.ConcurrentLRUTemplateCache.Builder.public ConcurrentLRUTemplateCache build()
ConcurrentLRUTemplateCache.Copyright © 2023. All rights reserved.