ehcache

net.sf.ehcache.transaction.xa
Class XARequest

java.lang.Object
  extended by net.sf.ehcache.transaction.xa.XARequest

public class XARequest
extends java.lang.Object

Author:
Nabib El-Rahman

Nested Class Summary
static class XARequest.RequestType
          XA Requests types
 
Constructor Summary
XARequest(XARequest.RequestType requestType, javax.transaction.Transaction txn, javax.transaction.xa.Xid xid)
          Constructor
XARequest(XARequest.RequestType requestType, javax.transaction.Transaction txn, javax.transaction.xa.Xid xid, int flags)
          Constructor
XARequest(XARequest.RequestType requestType, javax.transaction.Transaction txn, javax.transaction.xa.Xid xid, int flags, boolean onePhase)
          Constructor
 
Method Summary
 int getFlags()
           
 XARequest.RequestType getRequestType()
           
 javax.transaction.Transaction getTransaction()
          get the current transaction
 javax.transaction.xa.Xid getXid()
           
 boolean isOnePhase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XARequest

public XARequest(XARequest.RequestType requestType,
                 javax.transaction.Transaction txn,
                 javax.transaction.xa.Xid xid)
Constructor

Parameters:
requestType - what request is this representing
txn - the Transaction this request is being executed for
xid - the Xid of the transaction this request is being executed for

XARequest

public XARequest(XARequest.RequestType requestType,
                 javax.transaction.Transaction txn,
                 javax.transaction.xa.Xid xid,
                 int flags)
Constructor

Parameters:
requestType - what request is this representing
txn - the Transaction this request is being executed for
xid - the Xid of the transaction this request is being executed for
flags - the flags passed to the XAResource, when the request is made

XARequest

public XARequest(XARequest.RequestType requestType,
                 javax.transaction.Transaction txn,
                 javax.transaction.xa.Xid xid,
                 int flags,
                 boolean onePhase)
Constructor

Parameters:
requestType - what request is this representing
txn - the Transaction this request is being executed for
xid - the Xid of the transaction this request is being executed for
flags - the flags passed to the XAResource, when the request is made
onePhase - whether this is a single phase commit
Method Detail

getRequestType

public XARequest.RequestType getRequestType()
Returns:
the type of request

getXid

public javax.transaction.xa.Xid getXid()
Returns:
the Xid of the Transaction

getFlags

public int getFlags()
Returns:
the flags passed to the XAResource when this request was made

isOnePhase

public boolean isOnePhase()
Returns:
true is one phase commit requested, otherwise false

getTransaction

public javax.transaction.Transaction getTransaction()
get the current transaction

Returns:
the transaction for this request

ehcache

true