Package | Description |
---|---|
org.cache2k | |
org.cache2k.spi |
Modifier and Type | Field and Description |
---|---|
protected CacheBuilder<K,T> |
BaseAnyBuilder.root |
Modifier and Type | Method and Description |
---|---|
CacheBuilder<K,T> |
RootAnyBuilder.backgroundRefresh(boolean f) |
CacheBuilder<K,T> |
CacheBuilder.entryExpiryCalculator(EntryExpiryCalculator c)
Set expiry calculator to use.
|
CacheBuilder<K,T> |
CacheBuilder.eternal(boolean v)
Keep entries forever.
|
CacheBuilder<K,T> |
CacheBuilder.exceptionExpiryCalculator(ExceptionExpiryCalculator c)
Set expiry calculator to use in case of an exception happened in the
CacheSource . |
CacheBuilder<K,T> |
CacheBuilder.exceptionExpiryDuration(long v,
TimeUnit u)
Separate timeout in the case an exception was thrown in the cache source.
|
CacheBuilder<K,T> |
CacheBuilder.expiryDuration(long v,
TimeUnit u)
Set the time duration after an entry expires.
|
CacheBuilder<K,T> |
CacheBuilder.expiryMillis(long v)
Deprecated.
since 0.20, please use
expiryDuration(long, java.util.concurrent.TimeUnit) |
CacheBuilder<K,T> |
CacheBuilder.expirySecs(int v)
Deprecated.
since 0.20, please use
expiryDuration(long, java.util.concurrent.TimeUnit) |
CacheBuilder<K,T> |
CacheBuilder.heapEntryCapacity(int v) |
CacheBuilder<K,T> |
CacheBuilder.implementation(Class<?> c) |
CacheBuilder<K,T> |
CacheBuilder.keepDataAfterExpired(boolean v) |
CacheBuilder<K,T> |
CacheBuilder.maxSize(int v) |
CacheBuilder<K,T> |
CacheBuilder.maxSizeBound(int v) |
CacheBuilder<K,T> |
CacheBuilder.name(Class<?> _class) |
CacheBuilder<K,T> |
CacheBuilder.name(Class<?> _class,
String _fieldName)
Constructs a cache name out of the simple class name and fieldname.
|
CacheBuilder<K,T> |
CacheBuilder.name(Object _containingObject,
String _fieldName)
Constructs a cache name out of the simple class name and fieldname.
|
CacheBuilder<K,T> |
CacheBuilder.name(String v) |
static <K,C extends Collection<T>,T> |
CacheBuilder.newCache(Class<K> _keyType,
Class<C> _collectionType,
Class<T> _entryType) |
static <K,T> CacheBuilder<K,T> |
CacheBuilder.newCache(Class<K> _keyType,
Class<T> _valueType) |
CacheBuilder<K,T> |
CacheBuilder.refreshController(RefreshController c)
Deprecated.
since 0.20, please use
entryExpiryCalculator |
CacheBuilder<K,T> |
BaseAnyBuilder.root() |
CacheBuilder<K,T> |
AnyBuilder.root()
Goes back to the root builder, to add more configuration nodes.
|
CacheBuilder<K,T> |
RootAnyBuilder.sharpExpiry(boolean f) |
CacheBuilder<K,T> |
CacheBuilder.source(BulkCacheSource<K,T> g) |
CacheBuilder<K,T> |
CacheBuilder.source(CacheSource<K,T> g) |
CacheBuilder<K,T> |
CacheBuilder.source(CacheSourceWithMetaInfo<K,T> g) |
CacheBuilder<K,T> |
CacheBuilder.source(ExperimentalBulkCacheSource<K,T> g) |
CacheBuilder<K,T> |
CacheBuilder.suppressExceptions(boolean v)
If an exceptions gets thrown by the cache source, suppress it if there is
a previous value.
|
Modifier and Type | Method and Description |
---|---|
CacheBuilder<K,T> |
VoidConfigBuilder.root() |
Modifier and Type | Method and Description |
---|---|
abstract Class<? extends CacheBuilder> |
Cache2kCoreProvider.getBuilderImplementation() |
Modifier and Type | Method and Description |
---|---|
<K,T> B |
StorageImplementation.createConfigurationBuilder(CacheBuilder<K,T> _rootBuilder) |
Constructor and Description |
---|
VoidConfigBuilder(CacheBuilder<K,T> root) |
cache2k API documentation. Copyright © 2000–2016 headissue GmbH, Munich.