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

com.taosdata.jdbc.tmq.JNIConsumerFactory Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package com.taosdata.jdbc.tmq;

import com.taosdata.jdbc.common.Consumer;
import com.taosdata.jdbc.common.ConsumerFactory;
import com.taosdata.jdbc.common.ConsumerManager;
import com.taosdata.jdbc.enums.ConnectionType;

public class JNIConsumerFactory implements ConsumerFactory {

    static {
        ConsumerManager.register(new JNIConsumerFactory());
    }

    @Override
    public boolean acceptsType(String type) {
        return null == type || ConnectionType.JNI.getType().equalsIgnoreCase(type);
    }

    @Override
    public Consumer getConsumer() {
        return new JNIConsumer<>();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy