Class CompositeStateListener
- java.lang.Object
-
- io.streamthoughts.azkarra.api.streams.listener.CompositeStateListener
-
- All Implemented Interfaces:
org.apache.kafka.streams.KafkaStreams.StateListener
public class CompositeStateListener extends Object implements org.apache.kafka.streams.KafkaStreams.StateListener
AKafkaStreams.StateListenerthat delegates to one or moreKafkaStreams.StateListenerin order.
-
-
Constructor Summary
Constructors Constructor Description CompositeStateListener()Creates a newCompositeStateListenerinstance.CompositeStateListener(Collection<org.apache.kafka.streams.KafkaStreams.StateListener> delegates)Creates a newCompositeStateListenerinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeStateListeneraddListener(org.apache.kafka.streams.KafkaStreams.StateListener listener)voidonChange(org.apache.kafka.streams.KafkaStreams.State newState, org.apache.kafka.streams.KafkaStreams.State oldState)
-
-
-
Constructor Detail
-
CompositeStateListener
public CompositeStateListener()
Creates a newCompositeStateListenerinstance.
-
CompositeStateListener
public CompositeStateListener(Collection<org.apache.kafka.streams.KafkaStreams.StateListener> delegates)
Creates a newCompositeStateListenerinstance.- Parameters:
delegates- the list ofCompositeStateListener.
-
-
Method Detail
-
addListener
public CompositeStateListener addListener(org.apache.kafka.streams.KafkaStreams.StateListener listener)
-
onChange
public void onChange(org.apache.kafka.streams.KafkaStreams.State newState, org.apache.kafka.streams.KafkaStreams.State oldState)- Specified by:
onChangein interfaceorg.apache.kafka.streams.KafkaStreams.StateListener
-
-