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