public interface DirectoryCacheBuilder extends CacheBuilder<PersistentCache>
CacheBuilder.VersionStrategy| Modifier and Type | Method and Description |
|---|---|
DirectoryCacheBuilder |
forObject(Object target)
Specifies the target domain object.
|
DirectoryCacheBuilder |
withDisplayName(String displayName)
Specifies the display name for this cache.
|
DirectoryCacheBuilder |
withInitializer(Action<? super PersistentCache> initializer)
Specifies an action to execute to initialize the cache contents, if the cache does not exist or is invalid.
|
DirectoryCacheBuilder |
withLockMode(FileLockManager.LockMode lockMode)
Specifies the initial lock mode to use.
|
DirectoryCacheBuilder |
withProperties(Map<String,?> properties)
Specifies the additional key properties for the cache.
|
DirectoryCacheBuilder |
withValidator(CacheValidator validator)
Specifies a cache validator for this cache.
|
DirectoryCacheBuilder |
withVersionStrategy(CacheBuilder.VersionStrategy strategy)
Specifies the versioning strategy for this cache.
|
openDirectoryCacheBuilder withVersionStrategy(CacheBuilder.VersionStrategy strategy)
CacheBuilderCacheBuilder.VersionStrategy.CachePerVersion.withVersionStrategy in interface CacheBuilder<PersistentCache>strategy - The strategyDirectoryCacheBuilder withProperties(Map<String,?> properties)
CacheBuilderwithProperties in interface CacheBuilder<PersistentCache>properties - additional properties for the cache.DirectoryCacheBuilder forObject(Object target)
CacheBuilderforObject in interface CacheBuilder<PersistentCache>target - The target domain object which the cache is for.DirectoryCacheBuilder withDisplayName(String displayName)
DirectoryCacheBuilder withLockMode(FileLockManager.LockMode lockMode)
PersistentCache for details.
Note that not every combination of cache type and lock mode is supported.
DirectoryCacheBuilder withInitializer(Action<? super PersistentCache> initializer)
DirectoryCacheBuilder withValidator(CacheValidator validator)
CacheBuilderCacheValidator.isValid() results in false, the Cache is considered as invalid.withValidator in interface CacheBuilder<PersistentCache>validator - The validatorCopyright © 2013. All rights reserved