com.hazelcast.transaction
Interface TransactionalTask<T>
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 the Runnable and Callable, the TransactionalTask
 will run on the caller thread.
- Author:
 
  - mdogan 3/6/13
 
- See Also:
 HazelcastInstance.executeTransaction(TransactionalTask), 
HazelcastInstance.executeTransaction(TransactionOptions, TransactionalTask)
 
execute
T execute(TransactionalTaskContext context)
          throws TransactionException
- Executes the transactional logic.
- Parameters:
 context - the TransactionalTaskContext that provides access to the transaction and to the
                transactional resource like the TransactionalMap.
- Returns:
 - the result of the task
 - Throws:
 TransactionException - if transaction error happens while executing this task.
 
 
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.