Implementation of BackOff that increases the back off period for each retry attempt.
Builder class for BackOff
Wait for Retry
Returns the duration (milliseconds).
clean up
The current retry count.