Interface NetworkServerFailure.Resolution

    • Method Detail

      • isFailure

        boolean isFailure()
        Returns true if failure is unrecoverable and false if error is recoverable and failover actions should be performed by the server.
        Returns:
        true if failure is unrecoverable and false if error is recoverable and failover actions should be performed by the server.
      • retryDelay

        long retryDelay()
        Returns the amount of time in milliseconds for server to wait before performing another failover attempt.
        Returns:
        Time in milliseconds.
      • retryAddress

        InetSocketAddress retryAddress()
        Returns a new address that the server should try during its failover actions. Returning null instructs the server to reuse the old address (see NetworkServerFailure.lastTriedAddress()).
        Returns:
        New address that the server should try during its failover actions.
      • withRetryDelay

        NetworkServerFailure.Resolution withRetryDelay​(long delay)
        Sets the amount of time in milliseconds for server to wait before performing another failover attempt.
        Parameters:
        delay - Time in milliseconds.
        Returns:
        This instance.
      • withRetryAddress

        NetworkServerFailure.Resolution withRetryAddress​(InetSocketAddress address)
        Sets the new address that server should try during its failover actions.
        Parameters:
        address - New address or null if server should retry the same address.
        Returns:
        This instance.