Interface ServerSelector
@Unstable
public interface ServerSelector
Select the most appropriate server among the list of servers of an endpoint.
- Author:
- Julien Viet
-
Method Summary
-
Method Details
-
select
int select()Selects a server.- Returns:
- the selected index or
-1if selection could not be achieved
-
select
Select a server using a routingkey.- Parameters:
key- a key used for routing in sticky strategies- Returns:
- the selected index or
-1if selection could not be achieved
-