tyrex.tm.impl
public class ThreadContext extends RuntimeContext
Version: $Revision: 1.10 $ $Date: 2001/10/05 22:15:34 $
| Field Summary | |
|---|---|
| protected TransactionImpl | _tx
The transaction associated with this thread, if the thread
is in a transaction, or null if the thread is not in a
transaction. |
| protected ThreadContext.InternalXAResourceHolder | _xaResourceHolder
The XA resources and callbacks that have been opened before or during the
transaction and must be enlisted with the transaction when
the transaction starts. |
| Constructor Summary | |
|---|---|
| ThreadContext(Subject subject) | |
| ThreadContext(Context context, Subject subject) | |
| Method Summary | |
|---|---|
| protected void | add(XAResource xaResource, XAResourceCallback callback)
Adds an XA resource to the association list. |
| static void | cleanup(Thread thread) |
| void | cleanup() |
| Context | getEnvContext() |
| MemoryBinding | getMemoryBinding() |
| Subject | getSubject() |
| static ThreadContext | getThreadContext() |
| static ThreadContext | getThreadContext(Thread thread) |
| Transaction | getTransaction() |
| protected XAResourceHolder[] | getXAResourceHolders()
Returns all the XA resources, or null if no resources
are enlisted.
|
| protected boolean | remove(XAResource xaResource)
Removes an XA resource from the associated list.
|
| static void | setThreadContext(ThreadContext context) |
| static ThreadContext | unsetThreadContext() |
Returns: All XA resources, or null
Parameters: xaResource the XA resource
Returns: True if removed