站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

ExecutionContext (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


javax.resource.spi.work
Class ExecutionContext

java.lang.Object
  extended byjavax.resource.spi.work.ExecutionContext

public class ExecutionContext
extends Object

An execution context provides context information for work, e.g. transaction, security, etc.


Constructor Summary
ExecutionContext()
           
 
Method Summary
 long getTransactionTimeout()
          Get the transaction timeout
 Xid getXid()
          Get the xid
 void setTransactionTimeout(long timeout)
          Set the transaction timeout
 void setXid(Xid xid)
          Set the xid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContext

public ExecutionContext()
Method Detail

getXid

public Xid getXid()
Get the xid

Returns:
the xid

setXid

public void setXid(Xid xid)
Set the xid

Parameters:
xid - the xid

getTransactionTimeout

public long getTransactionTimeout()
Get the transaction timeout

Returns:
the transaction timeout or WorkManager.UNKNOWN for an invalid or unspecified value

setTransactionTimeout

public void setTransactionTimeout(long timeout)
                           throws NotSupportedException
Set the transaction timeout

Parameters:
timeout - the timeout
Throws:
NotSupportedException - for an invalid timeout


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.