public static TransactionContext getTransactionContext ( HazelcastInstance hazelcastInstance ) { TransactionContextHolder transactionContextHolder = ( TransactionContextHolder ) TransactionSynchronizationManager . getResource ( hazelcastInstance ) ; if ( transactionContextHolder == null ) { throw new NoTransactionException ( "No TransactionContext with actual transaction available for current thread" ) ; } return transactionContextHolder . getContext ( ) ; }
Returns the transaction context for the given Hazelcast instance bounded to the current thread .