|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbitronix.tm.internal.ThreadContext
public class ThreadContext
Transactional context of a thread. It contains both the active transaction (if any) and all default parameters that a transaction running on a thread must inherit.
| Constructor Summary | |
|---|---|
ThreadContext()
|
|
| Method Summary | |
|---|---|
Map<Object,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. |
String |
toString()
Return a human-readable representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadContext()
| Method Detail |
|---|
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 Map<Object,Object> getResources()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||