Interface TransactionalTask<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

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.

mdogan 3/6/13
See Also:
HazelcastInstance.executeTransaction(TransactionalTask), HazelcastInstance.executeTransaction(TransactionOptions, TransactionalTask)
  • Method Summary

    Modifier and Type Method Description
    T execute​(TransactionalTaskContext context)
    Executes the transactional logic.