Class RoundRobinDeferredEndpointFunction
java.lang.Object
com.illumon.iris.db.v2.locations.remote.RoundRobinDeferredEndpointFunction
- All Implemented Interfaces:
com.fishlib.base.Function.Nullary<SocketAddress>
,com.fishlib.base.log.LogOutputAppendable
public class RoundRobinDeferredEndpointFunction
extends Object
implements com.fishlib.base.Function.Nullary<SocketAddress>, com.fishlib.base.log.LogOutputAppendable
Round-robin connection address function for
DataRoutingService.DeferredEndpoint
-
Constructor Summary
ConstructorsConstructorDescriptionRoundRobinDeferredEndpointFunction
(com.fishlib.io.logger.Logger log, DataRoutingService.DeferredEndpoint[] deferredEndpoints) Creates an instance with given set of endpoints for the client service to try and secure a stable connection. -
Method Summary
-
Constructor Details
-
RoundRobinDeferredEndpointFunction
public RoundRobinDeferredEndpointFunction(@NotNull com.fishlib.io.logger.Logger log, @NotNull DataRoutingService.DeferredEndpoint[] deferredEndpoints) Creates an instance with given set of endpoints for the client service to try and secure a stable connection.- Parameters:
log
- The passed in loggerdeferredEndpoints
- Array of endpoints to try and secure a single stable connection by a client
-
-
Method Details
-
call
- Specified by:
call
in interfacecom.fishlib.base.Function.Nullary<SocketAddress>
-
toString
-
append
public com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput) - Specified by:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-
equals
-
hashCode
public int hashCode()
-