use of com.hazelcast.core.TransactionalMap in project hazelcast by hazelcast.
the class TransactionalMapRemoveIfSameMessageTask method innerCall.
@Override
protected Object innerCall() throws Exception {
final TransactionContext context = getEndpoint().getTransactionContext(parameters.txnId);
final TransactionalMap map = context.getMap(parameters.name);
return map.remove(parameters.key, parameters.value);
}
use of com.hazelcast.core.TransactionalMap in project hazelcast by hazelcast.
the class TransactionalMapReplaceIfSameMessageTask method innerCall.
@Override
protected Object innerCall() throws Exception {
final TransactionContext context = getEndpoint().getTransactionContext(parameters.txnId);
final TransactionalMap map = context.getMap(parameters.name);
return map.replace(parameters.key, parameters.oldValue, parameters.newValue);
}
Aggregations