setTransactionAware bean property.
setTransactionAware, TransactionAwareCacheDecorator, TransactionAwareCacheManagerProxy
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Cache | decorateCache(Cache
the Cache object to be added to this CacheManager cache)Overrides org. Decorate the given Cache object if necessary. |
| public boolean | |
| public void | setTransactionAware(boolean transactionAware)
Set whether this CacheManager should expose transaction-aware Cache objects. |
| transactionAware | back to summary |
|---|---|
| private boolean transactionAware | |
| AbstractTransactionSupportingCacheManager | back to summary |
|---|---|
| public AbstractTransactionSupportingCacheManager() | |
| decorateCache | back to summary |
|---|---|
| protected Cache decorateCache(Cache cache) Overrides org. Doc from org. Decorate the given Cache object if necessary. | |
| isTransactionAware | back to summary |
|---|---|
| public boolean isTransactionAware() Return whether this CacheManager has been configured to be transaction-aware. | |
| setTransactionAware | back to summary |
|---|---|
| public void setTransactionAware(boolean transactionAware) Set whether this CacheManager should expose transaction-aware Cache objects. 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. | |