public interface CommandRouter
Modifier and Type | Method and Description |
---|---|
Optional<Member> |
findDestination(CommandMessage<?> message)
Returns the member instance to which the given
message should be routed. |
void |
updateMembership(int loadFactor,
CommandMessageFilter commandFilter)
Updates the load factor and capabilities of this member representing the current endpoint if the implementation
allows memberships to be updated dynamically.
|
Optional<Member> findDestination(CommandMessage<?> message)
message
should be routed. If no suitable member could be
found an empty Optional is returned.message
- the command message to find a member forvoid updateMembership(int loadFactor, CommandMessageFilter commandFilter)
loadFactor
- the new load factor of the member for this endpointcommandFilter
- the new capabilities of the member for this endpointCopyright © 2010–2024. All rights reserved.