Package org.apache.pulsar.broker.service
Interface TopicEventsListener
@Evolving
@LimitedPrivate
public interface TopicEventsListener
Listener for the Topic events.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumStages of events currently supported.static enumTypes of events currently supported. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(String topicName, TopicEventsListener.TopicEvent event, TopicEventsListener.EventStage stage, Throwable t) Handle topic event.
-
Method Details
-
handleEvent
void handleEvent(String topicName, TopicEventsListener.TopicEvent event, TopicEventsListener.EventStage stage, Throwable t) Handle topic event. Choice of the thread / maintenance of the thread pool is up to the event handlers.- Parameters:
topicName- - name of the topicevent- - TopicEventstage- - EventStaget- - exception in case of FAILURE, if present/known
-