Class Utils
- java.lang.Object
-
- org.opennms.core.ipc.common.kafka.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Properties
getKafkaConfig(Identity identity, org.osgi.service.cm.ConfigurationAdmin configAdmin, String type)
static Set<String>
getTopics(Properties kafkaConfig)
static <T> T
runWithGivenClassLoader(java.util.function.Supplier<T> supplier, ClassLoader classLoader)
static <T> T
runWithNullContextClassLoader(java.util.function.Supplier<T> supplier)
-
-
-
Method Detail
-
runWithNullContextClassLoader
public static <T> T runWithNullContextClassLoader(java.util.function.Supplier<T> supplier)
-
runWithGivenClassLoader
public static <T> T runWithGivenClassLoader(java.util.function.Supplier<T> supplier, ClassLoader classLoader)
-
getTopics
public static Set<String> getTopics(Properties kafkaConfig) throws ExecutionException, InterruptedException
-
getKafkaConfig
public static Properties getKafkaConfig(Identity identity, org.osgi.service.cm.ConfigurationAdmin configAdmin, String type)
-
-