All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dream.drive.transaction.TransactionContext Maven / Gradle / Ivy

package com.dream.drive.transaction;

class TransactionContext {

    private static final ThreadLocal XID_HOLDER = new ThreadLocal<>();

    private TransactionContext() {
    }

    public static String getXID() {
        return XID_HOLDER.get();
    }

    public static void release() {
        XID_HOLDER.remove();
    }

    public static void holdXID(String xid) {
        XID_HOLDER.set(xid);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy