public interface CommandRouter
|Modifier and Type||Method and Description|
Returns the member instance to which the given
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)
messageshould be routed. If no suitable member could be found an empty Optional is returned.
message- the command message to find a member for
void updateMembership(int loadFactor, CommandMessageFilter commandFilter)
loadFactor- the new load factor of the member for this endpoint
commandFilter- the new capabilities of the member for this endpoint
Copyright © 2010–2021. All rights reserved.