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