com.aliyun.openservices.ons.api.exactlyonce.ExactlyOnceONSFactory Maven / Gradle / Ivy
package com.aliyun.openservices.ons.api.exactlyonce;
import java.util.Properties;
import com.aliyun.openservices.shade.com.alibaba.rocketmq.client.retry.DefaultConsumerRetryStrategy;
import com.aliyun.openservices.ons.api.ONSFactory;
public class ExactlyOnceONSFactory extends ONSFactory {
private static ExactlyOnceONSFactoryAPI exactlyOnceONSFactoryAPI = new ExactlyOnceFactoryImpl();
public static ExactlyOnceConsumer createExactlyOnceConsumer(final Properties properties) {
return exactlyOnceONSFactoryAPI.createExactlyOnceConsumer(properties);
}
public static ExactlyOnceConsumer createExactlyOnceConsumer(final Properties properties, DefaultConsumerRetryStrategy retryStrategy) {
return exactlyOnceONSFactoryAPI.createExactlyOnceConsumer(properties, retryStrategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy