Class KafkaStreamsFactory

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    @Factory
    public class KafkaStreamsFactory
    extends java.lang.Object
    implements java.io.Closeable
    A factory that constructs the KafkaStreams bean.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      KafkaStreamsFactory​(io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Map<org.apache.kafka.streams.KafkaStreams,​ConfiguredStreamBuilder> getStreams()
      Get configured stream and builder for the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KafkaStreamsFactory

        public KafkaStreamsFactory​(io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
        Default constructor.
        Parameters:
        eventPublisher - The event publisher
    • Method Detail

      • getStreams

        public java.util.Map<org.apache.kafka.streams.KafkaStreams,​ConfiguredStreamBuilder> getStreams()
        Get configured stream and builder for the stream.
        Returns:
        Map of streams to builders
      • close

        @PreDestroy
        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable