Top Description Methods
io.rsocket.loadbalance

public Interface LoadbalanceStrategy

Known Direct Subinterfaces
io.rsocket.loadbalance.ClientLoadbalanceStrategy
Known Direct Implementers
io.rsocket.loadbalance.RoundRobinLoadbalanceStrategy
Annotations
@FunctionalInterface
Imports
io.rsocket.RSocket, java.util.List

Strategy to select an RSocket given a list of instances for load-balancing purposes. A simple implementation might go in round-robin fashion while a more sophisticated strategy might check availability, track usage stats, and so on.
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public RSocket

Returns:

the selected instance
select
(List<RSocket>
the list to choose from
sockets
)

Select an RSocket from the given non-empty list.

Method Detail

selectback to summary
public RSocket select(List<RSocket> sockets)

Select an RSocket from the given non-empty list.

Parameters
sockets:List<RSocket>

the list to choose from

Returns:RSocket

the selected instance