ehcache

net.sf.ehcache.transaction.xa.processor
Class XARequest

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

public class XARequest
extends Object

Author:
Nabib El-Rahman

Nested Class Summary
static class XARequest.RequestType
          XA Requests types
 
Constructor Summary
XARequest(XARequest.RequestType requestType, Xid xid)
          Constructor
XARequest(XARequest.RequestType requestType, Xid xid, boolean onePhase)
          Constructor
 
Method Summary
 XARequest.RequestType getRequestType()
           
 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,
                 Xid xid)
Constructor

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

XARequest

public XARequest(XARequest.RequestType requestType,
                 Xid xid,
                 boolean onePhase)
Constructor

Parameters:
requestType - what request is this representing
xid - the Xid of the transaction this request is being executed for
onePhase - whether this is a single phase commit
Method Detail

getRequestType

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

getXid

public Xid getXid()
Returns:
the Xid of the Transaction

isOnePhase

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

ehcache

Copyright 2001-2017, Terracotta, Inc.