|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionalTask<T>
Contains the logic that is going to be executed within a transaction. In practice the implementation will be an anonymous inner task.
Unlike theRunnable and Callable the TransactionalTask
will run on the caller thread.
HazelcastInstance.executeTransaction(TransactionalTask),
HazelcastInstance.executeTransaction(TransactionOptions, TransactionalTask)| Method Summary | |
|---|---|
T |
execute(TransactionalTaskContext context)
Executes the transactional logic. |
| Method Detail |
|---|
T execute(TransactionalTaskContext context)
throws TransactionException
context - the TransactionalTaskContext that provides access to the transaction and to the
transactional resourcs like the TransactionalMap.
TransactionException - if transaction error happens while executing this task.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||