|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventhandling.DefaultClusterSelector
public class DefaultClusterSelector
ClusterSelector implementation that always selects the same cluster. This implementation can serve as delegate for other cluster selectors for event listeners that do not belong to a specific cluster.
Constructor Summary | |
---|---|
DefaultClusterSelector()
Initializes the DefaultClusterSelector using a SimpleCluster with
identifier "default", to which this instance will assign all Event Listeners. |
|
DefaultClusterSelector(Cluster defaultCluster)
Initializes the DefaultClusterSelector to assign the given defaultCluster to each listener. |
Method Summary | |
---|---|
Cluster |
selectCluster(EventListener eventListener)
Selects the cluster instance that the given eventListener should be member of. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClusterSelector()
SimpleCluster
with
identifier "default", to which this instance will assign all Event Listeners.
public DefaultClusterSelector(Cluster defaultCluster)
defaultCluster
to each listener.
defaultCluster
- The Cluster to assign to each listenerMethod Detail |
---|
public Cluster selectCluster(EventListener eventListener)
eventListener
should be member of. This may be an existing
(or pre-configured) cluster, as well as a newly created cluster.
When null
is returned, this may cause the Event Listener not to be subscribed to any cluster at all.
This implementation always returns the same instance of SimpleCluster
.
selectCluster
in interface ClusterSelector
eventListener
- the event listener to select a cluster for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |