public class SimpleCluster extends AbstractCluster
Constructor and Description |
---|
SimpleCluster(String name)
Initializes the cluster with given
name . |
Modifier and Type | Method and Description |
---|---|
void |
publish(EventMessage... events)
Publishes the given Events to the members of this cluster.
|
getMembers, getMetaData, getName, subscribe, unsubscribe
public SimpleCluster(String name)
name
.name
- The name of this clusterpublic void publish(EventMessage... events)
Cluster
EventListeners
are
discouraged to throw exceptions, it is possible that they are propagated through this method invocation. In that
case, no guarantees can be given about the delivery of Events at all Cluster members.events
- The Events to publish in the clusterCopyright © 2010-2013. All Rights Reserved.