public class TaskEventPublisher extends Object
TaskEventPublisher
is used to publish instances of
TaskEvent
to any Subscribe
interested.
It uses a single-threaded, serial EventBus
.Constructor and Description |
---|
TaskEventPublisher() |
Modifier and Type | Method and Description |
---|---|
void |
publish(TaskEvent event)
Publishes the specified event to all registered listeners that
Subscribe to TaskEvent instances. |
void |
register(Object object)
Register a listener to receive events.
|
public void publish(TaskEvent event)
Subscribe
to TaskEvent
instances.event
- TaskEvent
public void register(Object object)
Subscribe
annotation.object
- the listener to receive events.Copyright © 2022 Apache Software Foundation. All rights reserved.