/** * Set the fixed delay in seconds between the reconnection attempts Also set the connection * policy to {@link ReconnectionPolicy#FIXED_DELAY}. * * @param fixedDelay Delay expressed in seconds */ public void setFixedDelay(int fixedDelay) { this.fixedDelay = fixedDelay; setReconnectionPolicy(ReconnectionPolicy.FIXED_DELAY); }
/** * Set the fixed delay in seconds between the reconnection attempts Also set the connection * policy to {@link ReconnectionPolicy#FIXED_DELAY}. * * @param fixedDelay Delay expressed in seconds */ public void setFixedDelay(int fixedDelay) { this.fixedDelay = fixedDelay; setReconnectionPolicy(ReconnectionPolicy.FIXED_DELAY); }
reconnectionManager.setReconnectionPolicy( ReconnectionManager.ReconnectionPolicy.FIXED_DELAY ); reconnectionManager.enableAutomaticReconnection();