Top Inners Fields Constructors Methods
net.sf.ehcache.transaction.xa.processor

public Class XARequest

extends Object
Class Inheritance
Imports
javax.transaction.xa.Xid

Author
Nabib El-Rahman

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
XARequest.RequestType

XA Requests types

Field Summary

Modifier and TypeField and Description
private final boolean
private final XARequest.RequestType
private final Xid

Constructor Summary

AccessConstructor and Description
public
XARequest(XARequest.RequestType
what request is this representing
requestType
,
Xid
the Xid of the transaction this request is being executed for
xid
)

Constructor

public
XARequest(XARequest.RequestType
what request is this representing
requestType
,
Xid
the Xid of the transaction this request is being executed for
xid
,
boolean
whether this is a single phase commit
onePhase
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public XARequest.RequestType

Returns:

the type of request
getRequestType
()

public Xid

Returns:

the Xid of the Transaction
getXid
()

public boolean

Returns:

true is one phase commit requested, otherwise false
isOnePhase
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

onePhaseback to summary
private final boolean onePhase
requestTypeback to summary
private final XARequest.RequestType requestType
xidback to summary
private final Xid xid

Constructor Detail

XARequestback to summary
public XARequest(XARequest.RequestType requestType, Xid xid)

Constructor

Parameters
requestType:XARequest.RequestType

what request is this representing

xid:Xid

the Xid of the transaction this request is being executed for

XARequestback to summary
public XARequest(XARequest.RequestType requestType, Xid xid, boolean onePhase)

Constructor

Parameters
requestType:XARequest.RequestType

what request is this representing

xid:Xid

the Xid of the transaction this request is being executed for

onePhase:boolean

whether this is a single phase commit

Method Detail

getRequestTypeback to summary
public XARequest.RequestType getRequestType()
Returns:XARequest.RequestType

the type of request

getXidback to summary
public Xid getXid()
Returns:Xid

the Xid of the Transaction

isOnePhaseback to summary
public boolean isOnePhase()
Returns:boolean

true is one phase commit requested, otherwise false

net.sf.ehcache.transaction.xa.processor back to summary

public final Enum XARequest.RequestType

extends Enum<XARequest.RequestType>
Class Inheritance

XA Requests types
Author
Nabib El-Rahman

Field Summary

Modifier and TypeField and Description
public static final XARequest.RequestType
COMMIT

commit

public static final XARequest.RequestType
FORGET

forget

public static final XARequest.RequestType
PREPARE

prepare

public static final XARequest.RequestType
ROLLBACK

rollback

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static XARequest.RequestType
public static XARequest.RequestType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COMMITback to summary
public static final XARequest.RequestType COMMIT

commit

FORGETback to summary
public static final XARequest.RequestType FORGET

forget

PREPAREback to summary
public static final XARequest.RequestType PREPARE

prepare

ROLLBACKback to summary
public static final XARequest.RequestType ROLLBACK

rollback

Constructor Detail

RequestTypeback to summary
private RequestType()

Method Detail

valueOfback to summary
public static XARequest.RequestType valueOf(String name)
valuesback to summary
public static XARequest.RequestType[] values()