public abstract class AbstractTransactionSupportingCacheManager extends AbstractCacheManager
setTransactionAware(boolean) bean property.setTransactionAware(boolean),
TransactionAwareCacheDecorator,
TransactionAwareCacheManagerProxy| Constructor and Description |
|---|
AbstractTransactionSupportingCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
decorateCache(Cache cache)
Decorate the given Cache object if necessary.
|
boolean |
isTransactionAware()
Return whether this CacheManager has been configured to be transaction-aware.
|
void |
setTransactionAware(boolean transactionAware)
Set whether this CacheManager should expose transaction-aware Cache objects.
|
addCache, afterPropertiesSet, getCache, getCacheNames, loadCachespublic AbstractTransactionSupportingCacheManager()
public void setTransactionAware(boolean transactionAware)
Default is "false". Set this to "true" to synchronize cache put/evict operations with ongoing Spring-managed transactions, performing the actual cache put/evict operation only in the after-commit phase of a successful transaction.
public boolean isTransactionAware()
protected Cache decorateCache(Cache cache)
AbstractCacheManagerdecorateCache in class AbstractCacheManagercache - the Cache object to be added to this CacheManager