Class KafkaStreamsFactory
java.lang.Object
io.micronaut.configuration.kafka.streams.KafkaStreamsFactory
- All Implemented Interfaces:
Closeable
,AutoCloseable
A factory that constructs the
KafkaStreams
bean.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Constructor Summary
ConstructorDescriptionKafkaStreamsFactory
(io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Default constructor. -
Method Summary
-
Constructor Details
-
KafkaStreamsFactory
public KafkaStreamsFactory(io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Default constructor.- Parameters:
eventPublisher
- The event publisher
-
-
Method Details
-
getStreams
Get configured stream and builder for the stream.- Returns:
- Map of streams to builders
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-