public class Retrier extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RETRIES
Default max number of attempts to make in performing a Retriable action
|
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(Retriable retriable)
Executes the action of a Retriable, and retries on error.
|
<T> T |
execute(Retriable retriable,
ExceptionHandler exceptionHandler)
Executes the action of a Retriable, and retries on error.
|
public static final int DEFAULT_MAX_RETRIES
public <T> T execute(Retriable retriable) throws Exception
retriable
- Exception
public <T> T execute(Retriable retriable, ExceptionHandler exceptionHandler) throws Exception
retriable
- exceptionHandler
- for customing handling of exceptions - especially with respect
to customized logging.Exception
Copyright © 2009–2014 DuraSpace. All rights reserved.