Class TaskEventHandler
- java.lang.Object
-
- org.apache.flink.runtime.io.network.api.TaskEventHandler
-
public class TaskEventHandler extends Object
The event handler managesEventListenerinstances and allows to publish events to them.
-
-
Constructor Summary
Constructors Constructor Description TaskEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpublish(TaskEvent event)Publishes the task event to all subscribed event listeners.voidsubscribe(EventListener<TaskEvent> listener, Class<? extends TaskEvent> eventType)
-
-
-
Method Detail
-
subscribe
public void subscribe(EventListener<TaskEvent> listener, Class<? extends TaskEvent> eventType)
-
publish
public void publish(TaskEvent event)
Publishes the task event to all subscribed event listeners.- Parameters:
event- The event to publish.
-
-