public abstract class ReconnectStrategy extends Object
Modifier and Type | Method and Description |
---|---|
static ReconnectStrategy |
constantBackoff() |
static ReconnectStrategy |
constantBackoff(int timeout) |
abstract ConnectionHandler |
create(ConnectionHandler userConnectionHandler) |
static ReconnectStrategy |
disconnect() |
static ReconnectStrategy |
exponentialBackoff() |
static ReconnectStrategy |
exponentialBackoff(int startTimeout,
double multiplier) |
static ReconnectStrategy |
exponentialBackoff(int startTimeout,
double multiplier,
int timeoutCap) |
static ReconnectStrategy |
linearBackoff() |
static ReconnectStrategy |
linearBackoff(int startTimeout,
int addend) |
static ReconnectStrategy |
linearBackoff(int startTimeout,
int addend,
int timeoutCap) |
static ReconnectStrategy |
userControlled() |
public abstract ConnectionHandler create(ConnectionHandler userConnectionHandler)
public static ReconnectStrategy userControlled()
public static ReconnectStrategy disconnect()
public static ReconnectStrategy constantBackoff()
public static ReconnectStrategy constantBackoff(int timeout)
public static ReconnectStrategy linearBackoff()
public static ReconnectStrategy linearBackoff(int startTimeout, int addend)
public static ReconnectStrategy linearBackoff(int startTimeout, int addend, int timeoutCap)
public static ReconnectStrategy exponentialBackoff()
public static ReconnectStrategy exponentialBackoff(int startTimeout, double multiplier)
public static ReconnectStrategy exponentialBackoff(int startTimeout, double multiplier, int timeoutCap)
Copyright © 2016. All rights reserved.