com.taosdata.jdbc.common.ConsumerManager Maven / Gradle / Ivy
package com.taosdata.jdbc.common;
import java.io.PrintWriter;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.sql.SQLException;
import java.util.Iterator;
import java.util.ServiceLoader;
import java.util.concurrent.CopyOnWriteArrayList;
public class ConsumerManager {
private ConsumerManager() {
}
// List of registered Consumer
private static final CopyOnWriteArrayList registeredConsumers = new CopyOnWriteArrayList<>();
private static final Object logSync = new Object();
private static PrintWriter logWriter = null;
static {
loadConsumerFactories();
}
@SuppressWarnings("all")
private static void loadConsumerFactories() {
AccessController.doPrivileged((PrivilegedAction
© 2015 - 2025 Weber Informatics LLC | Privacy Policy