public class XARequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XARequest.RequestType
XA Requests types
|
Modifier and Type | Field and Description |
---|---|
private boolean |
onePhase |
private XARequest.RequestType |
requestType |
private javax.transaction.xa.Xid |
xid |
Constructor and Description |
---|
XARequest(XARequest.RequestType requestType,
javax.transaction.xa.Xid xid)
Constructor
|
XARequest(XARequest.RequestType requestType,
javax.transaction.xa.Xid xid,
boolean onePhase)
Constructor
|
Modifier and Type | Method and Description |
---|---|
XARequest.RequestType |
getRequestType() |
javax.transaction.xa.Xid |
getXid() |
boolean |
isOnePhase() |
private final XARequest.RequestType requestType
private final javax.transaction.xa.Xid xid
private final boolean onePhase
public XARequest(XARequest.RequestType requestType, javax.transaction.xa.Xid xid)
requestType
- what request is this representingxid
- the Xid of the transaction this request is being executed forpublic XARequest(XARequest.RequestType requestType, javax.transaction.xa.Xid xid, boolean onePhase)
requestType
- what request is this representingxid
- the Xid of the transaction this request is being executed foronePhase
- whether this is a single phase commitpublic XARequest.RequestType getRequestType()
public javax.transaction.xa.Xid getXid()
public boolean isOnePhase()