Class MeterKafkaStreamsInterceptor
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.BaseComponentModule
-
- io.streamthoughts.azkarra.metrics.interceptor.MeterKafkaStreamsInterceptor
-
- All Implemented Interfaces:
ComponentFactoryAware
,ConfigurableComponentFactory
,Configurable
,StreamsLifecycleInterceptor
@Component @ConditionalOnMetricsEnable @ConditionalOn(property="metrics.binders.kafkastreams.enable", havingValue="true") public class MeterKafkaStreamsInterceptor extends BaseComponentModule implements StreamsLifecycleInterceptor
-
-
Constructor Summary
Constructors Constructor Description MeterKafkaStreamsInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Conf configuration)
Configures this instance with the specifiedConf
.void
onStart(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being started.void
onStop(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being stopped.-
Methods inherited from class io.streamthoughts.azkarra.api.components.BaseComponentModule
getComponentFactory, getConfiguration, setComponentFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.streamthoughts.azkarra.api.components.ConfigurableComponentFactory
getAllComponents, getAllComponents, getAllComponents, getAllComponents, getComponent, getComponent, getComponent, getComponent
-
-
-
-
Method Detail
-
configure
public void configure(Conf configuration)
Configures this instance with the specifiedConf
.- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classBaseComponentModule
- Parameters:
configuration
- theConf
instance used to configure this instance.
-
onStart
public void onStart(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being started.- Specified by:
onStart
in interfaceStreamsLifecycleInterceptor
chain
- theStreamsLifecycleChain
instance.
-
onStop
public void onStop(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being stopped.- Specified by:
onStop
in interfaceStreamsLifecycleInterceptor
chain
- theStreamsLifecycleChain
instance.
-
-