Package com.hazelcast.spring.transaction
Class ManagedTransactionalTaskContext
java.lang.Object
com.hazelcast.spring.transaction.ManagedTransactionalTaskContext
- All Implemented Interfaces:
TransactionalTaskContext
TransactionalTaskContext proxying implementation to make the one created by HazelcastTransactionManager
available to actual business logic. Useful when the transaction is managed declaratively using
@Transactional annotations with AOP.- Author:
- Balint Krivan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> TransactionalList<E>Returns the transactional list instance with the specified name.<K,V> TransactionalMap<K, V> Returns the transactional distributed map instance with the specified name.<K,V> TransactionalMultiMap<K, V> getMultiMap(String name) Returns the transactional multimap instance with the specified name.<E> TransactionalQueue<E>Returns the transactional queue instance with the specified name.<E> TransactionalSet<E>Returns the transactional set instance with the specified name.<T extends TransactionalObject>
TgetTransactionalObject(String serviceName, String name) Returns the transactional object instance with the specified name and service name.
-
Constructor Details
-
ManagedTransactionalTaskContext
-
-
Method Details
-
getMap
Description copied from interface:TransactionalTaskContextReturns the transactional distributed map instance with the specified name.- Specified by:
getMapin interfaceTransactionalTaskContext- Type Parameters:
K- type of the map keyV- type of the map value- Parameters:
name- name of the distributed transactional map- Returns:
- transactional distributed map instance with the specified name
-
getQueue
Description copied from interface:TransactionalTaskContextReturns the transactional queue instance with the specified name.- Specified by:
getQueuein interfaceTransactionalTaskContext- Type Parameters:
E- the type of elements held in the queue- Parameters:
name- name of the transactional queue- Returns:
- transactional queue instance with the specified name
-
getMultiMap
Description copied from interface:TransactionalTaskContextReturns the transactional multimap instance with the specified name.- Specified by:
getMultiMapin interfaceTransactionalTaskContext- Type Parameters:
K- type of the multimap keyV- type of the multimap value- Parameters:
name- name of the transactional multimap- Returns:
- transactional multimap instance with the specified name
-
getList
Description copied from interface:TransactionalTaskContextReturns the transactional list instance with the specified name.- Specified by:
getListin interfaceTransactionalTaskContext- Type Parameters:
E- the type of elements held in the list- Parameters:
name- name of the transactional list- Returns:
- transactional list instance with the specified name
-
getSet
Description copied from interface:TransactionalTaskContextReturns the transactional set instance with the specified name.- Specified by:
getSetin interfaceTransactionalTaskContext- Type Parameters:
E- the type of elements held in the set- Parameters:
name- name of the transactional set- Returns:
- transactional set instance with the specified name
-
getTransactionalObject
Description copied from interface:TransactionalTaskContextReturns the transactional object instance with the specified name and service name.- Specified by:
getTransactionalObjectin interfaceTransactionalTaskContext- Type Parameters:
T- the type of the transactional object- Parameters:
serviceName- service name for the transactional object instancename- name of the transactional object instance- Returns:
- transactional object instance with the specified name
-