Class CompositeStreamsInterceptor
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.interceptors.CompositeStreamsInterceptor
-
- All Implemented Interfaces:
StreamsLifecycleInterceptor
public class CompositeStreamsInterceptor extends Object implements StreamsLifecycleInterceptor
-
-
Constructor Summary
Constructors Constructor Description CompositeStreamsInterceptor()
Creates a newCompositeStreamsInterceptor
instance.CompositeStreamsInterceptor(Collection<StreamsLifecycleInterceptor> interceptors)
Creates a newCompositeStreamsInterceptor
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterceptors(Collection<StreamsLifecycleInterceptor> interceptors)
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.
-
-
-
Constructor Detail
-
CompositeStreamsInterceptor
public CompositeStreamsInterceptor()
Creates a newCompositeStreamsInterceptor
instance.
-
CompositeStreamsInterceptor
public CompositeStreamsInterceptor(Collection<StreamsLifecycleInterceptor> interceptors)
Creates a newCompositeStreamsInterceptor
instance.- Parameters:
interceptors
- the list of interceptors.
-
-
Method Detail
-
addInterceptors
public void addInterceptors(Collection<StreamsLifecycleInterceptor> interceptors)
-
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.
-
-