com.atomikos.datasource.xa
Class AbstractXidFactory

java.lang.Object
  extended by com.atomikos.datasource.xa.AbstractXidFactory
All Implemented Interfaces:
XidFactory
Direct Known Subclasses:
DefaultXidFactory

public abstract class AbstractXidFactory
extends Object
implements XidFactory

An abstract superclass for all XidFactory implementations. This class provides the functionality to create really unique XIDs.


Constructor Summary
AbstractXidFactory()
           
 
Method Summary
 Xid createXid(String tid, String resourcename)
          Creates a new Xid instance for a given composite transaction id and resource name.
protected static long getCounter()
           
protected static void incCounter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXidFactory

public AbstractXidFactory()
Method Detail

incCounter

protected static void incCounter()

getCounter

protected static long getCounter()

createXid

public Xid createXid(String tid,
                     String resourcename)
Description copied from interface: XidFactory
Creates a new Xid instance for a given composite transaction id and resource name.

Specified by:
createXid in interface XidFactory
Parameters:
tid - The unique ID of the composite transaction.
resourcename - The unique resource name.
Returns:
Xid The Xid instance.
See Also:
XidFactory


Copyright © 2011. All Rights Reserved.