public final class ClusterEventMulticaster extends Object implements ClusterListener
Constructor and Description |
---|
ClusterEventMulticaster(List<ClusterListener> clusterListeners)
Construct an instance with the given list of cluster listeners
|
Modifier and Type | Method and Description |
---|---|
void |
clusterClosed(ClusterClosedEvent event)
Invoked when a cluster is closed.
|
void |
clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Invoked when a cluster description changes.
|
void |
clusterOpening(ClusterOpeningEvent event)
Invoked when a cluster is opened.
|
List<ClusterListener> |
getClusterListeners()
Gets the cluster listeners.
|
public ClusterEventMulticaster(List<ClusterListener> clusterListeners)
clusterListeners
- the non-null list of cluster listeners, none of which may be nullpublic List<ClusterListener> getClusterListeners()
public void clusterOpening(ClusterOpeningEvent event)
ClusterListener
clusterOpening
in interface ClusterListener
event
- the eventpublic void clusterClosed(ClusterClosedEvent event)
ClusterListener
clusterClosed
in interface ClusterListener
event
- the eventpublic void clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
ClusterListener
clusterDescriptionChanged
in interface ClusterListener
event
- the event