use of com.hazelcast.map.impl.tx.TransactionalMapProxy in project hazelcast by hazelcast.
the class TransactionalMapContainsKeyMessageTask method innerCall.
@Override
protected Object innerCall() throws Exception {
final TransactionContext context = endpoint.getTransactionContext(parameters.txnId);
final TransactionalMap map = context.getMap(parameters.name);
return ((TransactionalMapProxy) map).containsKey(parameters.key, true);
}
use of com.hazelcast.map.impl.tx.TransactionalMapProxy in project hazelcast by hazelcast.
the class TransactionalMapGetMessageTask method innerCall.
@Override
protected Object innerCall() throws Exception {
final TransactionContext context = endpoint.getTransactionContext(parameters.txnId);
final TransactionalMap map = context.getMap(parameters.name);
Object response = ((TransactionalMapProxy) map).get(parameters.key, true);
return serializationService.toData(response);
}
Aggregations