Class KafkaReactorUtil

java.lang.Object
io.micronaut.configuration.kafka.reactor.KafkaReactorUtil

@Internal public class KafkaReactorUtil extends Object
Utility methods for working with Kafka and Reactor.
Since:
4.0.0
Author:
graemerocher
  • Constructor Details

    • KafkaReactorUtil

      public KafkaReactorUtil()
  • Method Details

    • fromKafkaFuture

      public static <T> reactor.core.publisher.Mono<T> fromKafkaFuture(Supplier<KafkaFuture<T>> supplier)
      Factory for creating Mono instances from Kafka Future instances.
      Type Parameters:
      T - The type
      Parameters:
      supplier - The supplier
      Returns:
      The Mono