public class StreamsBuilderFactoryManager extends Object implements org.springframework.context.SmartLifecycle
StreamsBuilderFactoryBean in the application context and
start them. As each one completes starting, register the associated KafkaStreams object
into InteractiveQueryService.
This SmartLifecycle class ensures that the bean created from it is started very
late through the bootstrap process by setting the phase value closer to
Integer.MAX_VALUE. This is to guarantee that the StreamsBuilderFactoryBean on a
StreamListener method with multiple
bindings is only started after all the binding phases have completed successfully.| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecycleCopyright © 2022 Pivotal Software, Inc.. All rights reserved.