Constructor and Description |
---|
Retry(Func<X,Y> fnc)
Ctor.
|
Retry(Func<X,Y> fnc,
Func<Integer,Boolean> ext)
Ctor.
|
Retry(Func<X,Y> fnc,
Func<Integer,Boolean> ext,
Duration wait)
Ctor.
|
Retry(Func<X,Y> fnc,
int attempts)
Ctor.
|
Retry(Func<X,Y> fnc,
int attempts,
Duration wait)
Ctor.
|
public Retry(Func<X,Y> fnc, int attempts)
fnc
- Func originalattempts
- Maximum number of attemptspublic Retry(Func<X,Y> fnc, int attempts, Duration wait)
fnc
- Func originalattempts
- Maximum number of attemptswait
- The executions of the functionpublic Retry(Func<X,Y> fnc, Func<Integer,Boolean> ext)
fnc
- Func originalext
- Exit condition, returns TRUE if there is no more reason to tryCopyright © 2017–2020 Cactoos. All rights reserved.