io.quarkus.kafka.streams.runtime.KafkaStreamsRecorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-kafka-streams Show documentation
Show all versions of quarkus-kafka-streams Show documentation
Implement stream processing applications based on Apache Kafka
package io.quarkus.kafka.streams.runtime;
import java.util.Properties;
import java.util.function.Supplier;
import org.rocksdb.RocksDB;
import io.quarkus.runtime.annotations.Recorder;
@Recorder
public class KafkaStreamsRecorder {
public void loadRocksDb() {
RocksDB.loadLibrary();
}
public Supplier kafkaStreamsSupportSupplier(Properties properties) {
return new Supplier() {
@Override
public KafkaStreamsSupport get() {
return new KafkaStreamsSupport(properties);
}
};
}
}