Class XARequest
- java.lang.Object
-
- net.sf.ehcache.transaction.xa.processor.XARequest
-
public class XARequest extends java.lang.Object- Author:
- Nabib El-Rahman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXARequest.RequestTypeXA Requests types
-
Constructor Summary
Constructors Constructor Description XARequest(XARequest.RequestType requestType, javax.transaction.xa.Xid xid)ConstructorXARequest(XARequest.RequestType requestType, javax.transaction.xa.Xid xid, boolean onePhase)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XARequest.RequestTypegetRequestType()javax.transaction.xa.XidgetXid()booleanisOnePhase()
-
-
-
Constructor Detail
-
XARequest
public XARequest(XARequest.RequestType requestType, javax.transaction.xa.Xid xid)
Constructor- Parameters:
requestType- what request is this representingxid- the Xid of the transaction this request is being executed for
-
XARequest
public XARequest(XARequest.RequestType requestType, javax.transaction.xa.Xid xid, boolean onePhase)
Constructor- Parameters:
requestType- what request is this representingxid- the Xid of the transaction this request is being executed foronePhase- 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
-
isOnePhase
public boolean isOnePhase()
- Returns:
- true is one phase commit requested, otherwise false
-
-