Interface ReconnectionPolicy.ReconnectionSchedule
-
- Enclosing interface:
- ReconnectionPolicy
public static interface ReconnectionPolicy.ReconnectionScheduleSchedules reconnection attempts to a node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longnextDelayMs()When to attempt the next reconnection.
-
-
-
Method Detail
-
nextDelayMs
long nextDelayMs()
When to attempt the next reconnection.This method will be called once when the host is detected down to schedule the first reconnection attempt, and then once after each failed reconnection attempt to schedule the next one. Hence each call to this method are free to return a different value.
- Returns:
- a time in milliseconds to wait before attempting the next reconnection.
-
-