com.aliyun.openservices.ons.api.exactlyonce.aop.proxy.TxExecuter Maven / Gradle / Ivy
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