public interface CacheBuilder<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
CacheBuilder.VersionStrategy |
| Modifier and Type | Method and Description |
|---|---|
CacheBuilder<T> |
forObject(Object target)
Specifies the target domain object.
|
T |
open()
Opens the cache.
|
CacheBuilder<T> |
withProperties(Map<String,?> properties)
Specifies the additional key properties for the cache.
|
CacheBuilder<T> |
withValidator(CacheValidator validator)
Specifies a cache validator for this cache.
|
CacheBuilder<T> |
withVersionStrategy(CacheBuilder.VersionStrategy strategy)
Specifies the versioning strategy for this cache.
|
CacheBuilder<T> withProperties(Map<String,?> properties)
properties - additional properties for the cache.CacheBuilder<T> forObject(Object target)
target - The target domain object which the cache is for.CacheBuilder<T> withVersionStrategy(CacheBuilder.VersionStrategy strategy)
CacheBuilder.VersionStrategy.CachePerVersion.strategy - The strategyCacheBuilder<T> withValidator(CacheValidator validator)
CacheValidator.isValid() results in false, the Cache is considered as invalid.validator - The validatorT open() throws CacheOpenException
CacheOpenExceptionCopyright © 2013. All rights reserved