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 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 logger
      deferredEndpoints - Array of endpoints to try and secure a single stable connection by a client
  • Method Details

    • call

      public SocketAddress call()
      Specified by:
      call in interface com.fishlib.base.Function.Nullary<SocketAddress>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • append

      public com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object