}
@Override
protected boolean isCacheAutoCommit(Cache<?, ?> cache) {
TransactionConfiguration txConfig = cache.getCacheConfiguration().transaction();
return txConfig != null && txConfig.autoCommit();
}
protected boolean isCachePessimistic(Cache<?, ?> cache) {
TransactionConfiguration txConfig = cache.getCacheConfiguration().transaction();
return txConfig != null && txConfig.lockingMode().equals(LockingMode.PESSIMISTIC);