com.atomikos.datasource.xa
Class AbstractXidFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractXidFactory
public AbstractXidFactory()
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.