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

com.aliyun.openservices.ons.api.exactlyonce.aop.proxy.ProxyTxExecuter Maven / Gradle / Ivy

There is a newer version: 1.9.4.Final
Show newest version
package com.aliyun.openservices.ons.api.exactlyonce.aop.proxy;

import com.aliyun.openservices.ons.api.exactlyonce.aop.proxy.impl.ProxyTxExecuterImpl;

/**
 * @author gongshi
 */
public class ProxyTxExecuter implements TxExecuter {

    private ProxyTxExecuterImpl proxyTxExecuterImpl;

    public ProxyTxExecuter() {
        this.proxyTxExecuterImpl = new ProxyTxExecuterImpl();
    }

    @Override
    public Object excute(InternalCallback callback) {
        return this.proxyTxExecuterImpl.excute(callback);
    }

    @Override
    public Object excute(InternalCallback callback, Object object) {
        return this.proxyTxExecuterImpl.excute(callback, object);
    }

    @Override
    public void begin() {
        this.proxyTxExecuterImpl.begin();
    }

    @Override
    public void begin(int timeout) {
        this.proxyTxExecuterImpl.begin(timeout);
    }

    @Override
    public void commit() {
        this.proxyTxExecuterImpl.commit();
    }

    @Override
    public void rollback() {
        this.proxyTxExecuterImpl.rollback();
    }

    public static final ProxyTxExecuter getInstance() {
        return ProxyTxExecuterHolder.INSTANCE;
    }

    private static class ProxyTxExecuterHolder {
        private static final ProxyTxExecuter INSTANCE = new ProxyTxExecuter();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy