org.jboss.tm
@Deprecated public class TransactionLocalDelegateImpl extends Object implements TransactionLocalDelegate
Modifier and Type | Class and Description |
---|---|
protected static class |
TransactionLocalDelegateImpl.TransactionLocalSynchronization
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected TransactionManager |
manager
Deprecated.
The transaction manager
|
protected static ConcurrentHashMap<Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> |
synchronizationsByTransaction
Deprecated.
The synchronizations for each transaction
|
Constructor and Description |
---|
TransactionLocalDelegateImpl(TransactionManager manager)
Deprecated.
Construct a new delegate for the given transaction manager
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsValue(TransactionLocal local,
Transaction tx)
Deprecated.
does Transaction contain object?
|
protected static TransactionLocalDelegateImpl.TransactionLocalSynchronization |
getSynchronization(Transaction tx,
boolean create)
Deprecated.
Retrieve a synchronization for the transaction
|
Object |
getValue(TransactionLocal local,
Transaction tx)
Deprecated.
get the transaction local value.
|
void |
lock(TransactionLocal local,
Transaction tx)
Deprecated.
Lock the transaction local in the context of this transaction
|
protected static void |
removeSynchronization(Transaction tx)
Deprecated.
Remove a synchronization
|
void |
storeValue(TransactionLocal local,
Transaction tx,
Object value)
Deprecated.
put the value in the transaction local
|
void |
unlock(TransactionLocal local,
Transaction tx)
Deprecated.
Unlock the transaction local in the context of this transaction
|
protected TransactionManager manager
protected static ConcurrentHashMap<Transaction,TransactionLocalDelegateImpl.TransactionLocalSynchronization> synchronizationsByTransaction
public TransactionLocalDelegateImpl(TransactionManager manager)
manager
- the transaction managerprotected static TransactionLocalDelegateImpl.TransactionLocalSynchronization getSynchronization(Transaction tx, boolean create)
tx
- the transactioncreate
- whether to create a synchronization if one doesn't existprotected 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 transcationInterruptedException
- 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 transcationpublic 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 transcationCopyright © 2016 JBoss by Red Hat. All rights reserved.