com.atomikos.datasource.xa.XidFactory Maven / Gradle / Ivy
/**
* Copyright (C) 2000-2016 Atomikos
*
* LICENSE CONDITIONS
*
* See http://www.atomikos.com/Main/WhichLicenseApplies for details.
*/
package com.atomikos.datasource.xa;
/**
*
*
* A factory for creating new Xid instances. This allows different factories for
* different resources, which is needed because some resources need a custom Xid
* format.
*/
public interface XidFactory
{
/**
* Creates a new Xid instance for a given composite transaction id and
* resource name.
*
* @param tid
* The unique ID of the composite transaction.
* @param resourcename
* The unique resource name.
* @return Xid The Xid instance.
*/
public XID createXid ( String tid , String resourcename );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy