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

com.aliyun.openservices.ons.api.exactlyonce.ExactlyOnceONSFactory Maven / Gradle / Ivy

There is a newer version: 1.9.4.Final
Show newest version
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