'Sleep between retry attempts using an exponential backoff.
By default, the backoff factor is 0 and this method will return
immediately.'

def sleep(self):

    backoff = self.get_backoff_time()
    if (backoff <= 0):
        return
    time.sleep(backoff)
