public class TaskEventHandler extends Object
EventListener
instances and allows to publish events to them.Constructor and Description |
---|
TaskEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
publish(TaskEvent event)
Publishes the task event to all subscribed event listeners.
|
void |
subscribe(EventListener<TaskEvent> listener,
Class<? extends TaskEvent> eventType) |
public void subscribe(EventListener<TaskEvent> listener, Class<? extends TaskEvent> eventType)
public void publish(TaskEvent event)
event
- The event to publish.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.