Package org.opennms.core.cache
Class CacheConfigBuilder
- java.lang.Object
-
- org.opennms.core.cache.CacheConfigBuilder
-
public class CacheConfigBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description CacheConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheConfig
build()
CacheConfigBuilder
withExpireAfterRead(long seconds)
CacheConfigBuilder
withExpireAfterWrite(long seconds)
CacheConfigBuilder
withMaximumSize(long size)
CacheConfigBuilder
withName(String name)
-
-
-
Method Detail
-
withName
public CacheConfigBuilder withName(String name)
-
withExpireAfterRead
public CacheConfigBuilder withExpireAfterRead(long seconds)
-
withMaximumSize
public CacheConfigBuilder withMaximumSize(long size)
-
withExpireAfterWrite
public CacheConfigBuilder withExpireAfterWrite(long seconds)
-
build
public CacheConfig build()
-
-