public class ManagedTransactionalTaskContext extends Object implements 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.HazelcastTransactionManager
Constructor and Description |
---|
ManagedTransactionalTaskContext(HazelcastTransactionManager hzTxMgr) |
Modifier and Type | Method and Description |
---|---|
<E> TransactionalList<E> |
getList(String name)
Returns the transactional list instance with the specified name.
|
<K,V> TransactionalMap<K,V> |
getMap(String name)
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> |
getQueue(String name)
Returns the transactional queue instance with the specified name.
|
<E> TransactionalSet<E> |
getSet(String name)
Returns the transactional set instance with the specified name.
|
<T extends TransactionalObject> |
getTransactionalObject(String serviceName,
String name)
Returns the transactional object instance with the specified name and service name.
|
public ManagedTransactionalTaskContext(HazelcastTransactionManager hzTxMgr)
public <K,V> TransactionalMap<K,V> getMap(String name)
TransactionalTaskContext
getMap
in interface TransactionalTaskContext
K
- type of the map keyV
- type of the map valuename
- name of the distributed transactional mappublic <E> TransactionalQueue<E> getQueue(String name)
TransactionalTaskContext
getQueue
in interface TransactionalTaskContext
E
- the type of elements held in the queuename
- name of the transactional queuepublic <K,V> TransactionalMultiMap<K,V> getMultiMap(String name)
TransactionalTaskContext
getMultiMap
in interface TransactionalTaskContext
K
- type of the multimap keyV
- type of the multimap valuename
- name of the transactional multimappublic <E> TransactionalList<E> getList(String name)
TransactionalTaskContext
getList
in interface TransactionalTaskContext
E
- the type of elements held in the listname
- name of the transactional listpublic <E> TransactionalSet<E> getSet(String name)
TransactionalTaskContext
getSet
in interface TransactionalTaskContext
E
- the type of elements held in the setname
- name of the transactional setpublic <T extends TransactionalObject> T getTransactionalObject(String serviceName, String name)
TransactionalTaskContext
getTransactionalObject
in interface TransactionalTaskContext
T
- the type of the transactional objectserviceName
- service name for the transactional object instancename
- name of the transactional object instanceCopyright © 2023 Hazelcast, Inc.. All rights reserved.