Class NeverReconnectStrategy
- java.lang.Object
-
- org.opendaylight.netconf.nettyutil.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 Summary
Constructors Constructor Description NeverReconnectStrategy(io.netty.util.concurrent.EventExecutor executor, int timeout)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetConnectTimeout()Deprecated.Query the strategy for the connect timeout.voidreconnectSuccessful()Deprecated.Reset the strategy state.io.netty.util.concurrent.Future<Void>scheduleReconnect(Throwable cause)Deprecated.Schedule a connection attempt.
-
-
-
Method Detail
-
scheduleReconnect
public io.netty.util.concurrent.Future<Void> scheduleReconnect(Throwable cause)
Deprecated.Description copied from interface:ReconnectStrategySchedule a connection attempt. The precise time when the connection should be attempted is signaled by successful completion of returned future.- Specified by:
scheduleReconnectin interfaceReconnectStrategy- 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:ReconnectStrategyReset the strategy state. Users call this method once the reconnection process succeeds.- Specified by:
reconnectSuccessfulin interfaceReconnectStrategy
-
getConnectTimeout
public int getConnectTimeout()
Deprecated.Description copied from interface:ReconnectStrategyQuery the strategy for the connect timeout.- Specified by:
getConnectTimeoutin interfaceReconnectStrategy- Returns:
- connect try timeout in milliseconds, or 0 for infinite (or system-default) timeout
-
-