Class RoundRobinAddressFunction
java.lang.Object
com.illumon.iris.db.v2.locations.remote.RoundRobinAddressFunction
- All Implemented Interfaces:
com.fishlib.base.Function.Nullary<SocketAddress>
public class RoundRobinAddressFunction
extends Object
implements com.fishlib.base.Function.Nullary<SocketAddress>
Round-robin connection address function.
-
Constructor Summary
ConstructorsConstructorDescriptionRoundRobinAddressFunction
(SocketAddress... addresses) RoundRobinAddressFunction
(Collection<String> hosts, int port) -
Method Summary
-
Constructor Details
-
RoundRobinAddressFunction
-
RoundRobinAddressFunction
-
-
Method Details
-
call
- Specified by:
call
in interfacecom.fishlib.base.Function.Nullary<SocketAddress>
-