public class ThreadContext
extends java.lang.Object
| Constructor and Description |
|---|
ThreadContext() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Object,java.lang.Object> |
getResources()
Get this context's resources, in the JTA 1.1 TransactionSynchronizationRegistry sense.
|
int |
getTimeout()
Return this context's default timeout.
|
BitronixTransaction |
getTransaction()
Return the transaction linked with this thread context.
|
void |
setTimeout(int timeout)
Set this context's default timeout.
|
void |
setTransaction(BitronixTransaction transaction)
Link a transaction with this thead context.
|
java.lang.String |
toString()
Return a human-readable representation.
|
public BitronixTransaction getTransaction()
public void setTransaction(BitronixTransaction transaction)
transaction - the transaction to link.public int getTimeout()
public void setTimeout(int timeout)
timeout - the new default timeout value in seconds.public java.util.Map<java.lang.Object,java.lang.Object> getResources()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2006-2022 Bitronix Software. All Rights Reserved.