public interface TransactionalTask<T>
Runnable
and Callable
, the TransactionalTask
will run on the caller thread.HazelcastInstance.executeTransaction(TransactionalTask)
,
HazelcastInstance.executeTransaction(TransactionOptions, TransactionalTask)
Modifier and Type | Method and Description |
---|---|
T |
execute(TransactionalTaskContext context)
Executes the transactional logic.
|
T execute(TransactionalTaskContext context) throws TransactionException
context
- the TransactionalTaskContext that provides access to the transaction and to the
transactional resource like the TransactionalMap
.TransactionException
- if transaction error happens while executing this task.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.