Class KafkaStreamsFactory
- java.lang.Object
-
- io.micronaut.configuration.kafka.streams.KafkaStreamsFactory
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
@Factory public class KafkaStreamsFactory extends java.lang.Object implements java.io.CloseableA factory that constructs theKafkaStreamsbean.- 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 voidclose()java.util.Map<org.apache.kafka.streams.KafkaStreams,ConfiguredStreamBuilder>getStreams()Get configured stream and builder for the stream.
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-