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

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

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

/**
 * @author gongshi
 */
public interface TxExecuter {
    /**
     * execute user method with mq local transaction
     * @param callback for invoking consume method
     * @return user callback execute result
     */
    Object excute(InternalCallback callback);

    /**
     * execute user method with mq local transaction
     * @param callback for invoking consume method
     * @param object exception in consume method
     * @return user callback execute result
     */
    Object excute(InternalCallback callback, Object object);

    /**
     * begin mq local transaction
     */
    void begin();

    /**
     * begin mq local transaction
     * @param timeout timeout limit for ExactlyOnceConsumer local transaction
     */
    void begin(int timeout);

    /**
     * commit ExactlyOnceConsumer local transaction
     */
    void commit();

    /**
     * commit ExactlyOnceConsumer local transaction
     */
    void rollback();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy