Package io.streamthoughts.azkarra.api
Interface StreamsLifecycleInterceptor
-
public interface StreamsLifecycleInterceptorAn interface that allows to intercept aKafkaStreamsinstance before being started or stopped.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Stringname()The Interceptor name is mostly used for logging information.default voidonStart(StreamsLifecycleContext context, StreamsLifecycleChain chain)Intercepts the streams instance before being started.default voidonStop(StreamsLifecycleContext context, StreamsLifecycleChain chain)Intercepts the streams instance before being stopped.
-
-
-
Method Detail
-
onStart
default void onStart(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being started.- Parameters:
chain- theStreamsLifecycleChaininstance.
-
onStop
default void onStop(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being stopped.- Parameters:
chain- theStreamsLifecycleChaininstance.
-
name
default String name()
The Interceptor name is mostly used for logging information.- Returns:
- the name of this interceptor.
-
-