abstract class Retryable extends Object
protected abstract void attempt()
throws TemporaryException,
Exception
TemporaryException - for an error condition that can be temporary - i.e. retrying later could be successfulException - for all other error conditionspublic void execute(long interval,
long timeout)
throws RetryTimeoutException,
Exception
public void execute(long delay,
long interval,
long timeout)
throws RetryTimeoutException,
Exception
private void sleep(long millis)
Copyright © 2019. All rights reserved.