C
- the command context typepublic interface CommandDispatcher<C> extends Lifecycle
Modifier and Type | Method and Description |
---|---|
<R> Map<Member,R> |
executeAll(Command<R,C> command)
Execute the specified command on the group coordinator.
|
<R> R |
executeCoordinator(Command<R,C> command)
Execute the specified command on the coordinator.
|
Member |
getCoordinator()
Returns the group coordinator.
|
Member |
getLocal()
Returns the local member.
|
boolean |
isCoordinator()
Indicates whether or not the local member is the group coordinator.
|
<R> Map<Member,R> executeAll(Command<R,C> command)
R
- the return value typecommand
- the command to execute<R> R executeCoordinator(Command<R,C> command)
R
- the return value typecommand
- the command to executeboolean isCoordinator()
Member getLocal()
Member getCoordinator()
Copyright © 2004–2013 Paul Ferraro. All rights reserved.