|
JBoss Integration 6.0 Parent 6.0.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.tm.TransactionLocalDelegateImpl
public class TransactionLocalDelegateImpl
An implementation of the transaction local implementation using Transaction synchronizations. There is one of these per transaction local
Nested Class Summary | |
---|---|
protected static class |
TransactionLocalDelegateImpl.TransactionLocalSynchronization
|
Field Summary | |
---|---|
protected TransactionManager |
manager
The transaction manager |
protected static ConcurrentHashMap<Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> |
synchronizationsByTransaction
The synchronizations for each transaction |
Constructor Summary | |
---|---|
TransactionLocalDelegateImpl(TransactionManager manager)
Construct a new delegate for the given transaction manager |
Method Summary | |
---|---|
boolean |
containsValue(TransactionLocal local,
Transaction tx)
does Transaction contain object? |
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization |
getSynchronization(Transaction tx,
boolean create)
Retrieve a synchronization for the transaction |
Object |
getValue(TransactionLocal local,
Transaction tx)
get the transaction local value. |
void |
lock(TransactionLocal local,
Transaction tx)
Lock the transaction local in the context of this transaction |
protected static void |
removeSynchronization(Transaction tx)
Remove a synchronization |
void |
storeValue(TransactionLocal local,
Transaction tx,
Object value)
put the value in the transaction local |
void |
unlock(TransactionLocal local,
Transaction tx)
Unlock the transaction local in the context of this transaction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TransactionManager manager
protected static ConcurrentHashMap<Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> synchronizationsByTransaction
Constructor Detail |
---|
public TransactionLocalDelegateImpl(TransactionManager manager)
manager
- the transaction managerMethod Detail |
---|
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization getSynchronization(Transaction tx, boolean create)
tx
- the transactioncreate
- whether to create a synchronization if one doesn't exist
protected static void removeSynchronization(Transaction tx)
tx
- the transaction to removepublic void lock(TransactionLocal local, Transaction tx) throws InterruptedException
TransactionLocalDelegate
lock
in interface TransactionLocalDelegate
local
- the transaction localtx
- the transcation
InterruptedException
- if the thread is interruptedpublic void unlock(TransactionLocal local, Transaction tx)
TransactionLocalDelegate
unlock
in interface TransactionLocalDelegate
local
- the transaction localtx
- the transcationpublic Object getValue(TransactionLocal local, Transaction tx)
TransactionLocalDelegate
getValue
in interface TransactionLocalDelegate
local
- the transaction localtx
- the transcation
public void storeValue(TransactionLocal local, Transaction tx, Object value)
TransactionLocalDelegate
storeValue
in interface TransactionLocalDelegate
local
- the transaction localtx
- the transcationvalue
- the valuepublic boolean containsValue(TransactionLocal local, Transaction tx)
TransactionLocalDelegate
containsValue
in interface TransactionLocalDelegate
local
- the transaction localtx
- the transcation
|
JBoss Integration 6.0 Parent 6.0.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |