Class NeverReconnectStrategy

  • All Implemented Interfaces:
    ReconnectStrategy

    @Deprecated
    public final class NeverReconnectStrategy
    extends Object
    implements ReconnectStrategy
    Deprecated.
    Utility ReconnectStrategy singleton, which will cause the reconnect process to always fail. This class is thred-safe.
    • Constructor Detail

      • NeverReconnectStrategy

        public NeverReconnectStrategy​(io.netty.util.concurrent.EventExecutor executor,
                                      int timeout)
        Deprecated.
    • Method Detail

      • scheduleReconnect

        public io.netty.util.concurrent.Future<Void> scheduleReconnect​(Throwable cause)
        Deprecated.
        Description copied from interface: ReconnectStrategy
        Schedule a connection attempt. The precise time when the connection should be attempted is signaled by successful completion of returned future.
        Specified by:
        scheduleReconnect in interface ReconnectStrategy
        Parameters:
        cause - Cause of previous failure
        Returns:
        a future tracking the schedule, may not be null
      • reconnectSuccessful

        public void reconnectSuccessful()
        Deprecated.
        Description copied from interface: ReconnectStrategy
        Reset the strategy state. Users call this method once the reconnection process succeeds.
        Specified by:
        reconnectSuccessful in interface ReconnectStrategy
      • getConnectTimeout

        public int getConnectTimeout()
        Deprecated.
        Description copied from interface: ReconnectStrategy
        Query the strategy for the connect timeout.
        Specified by:
        getConnectTimeout in interface ReconnectStrategy
        Returns:
        connect try timeout in milliseconds, or 0 for infinite (or system-default) timeout