X
- Type of inputY
- Type of outputpublic final class RetryFunc<X,Y> extends Object implements Func<X,Y>
There is no thread-safety guarantee.
Func.NoNulls<X,Y>
Constructor and Description |
---|
RetryFunc(Func<X,Y> fnc)
Ctor.
|
RetryFunc(Func<X,Y> fnc,
Func<Integer,Boolean> ext)
Ctor.
|
RetryFunc(Func<X,Y> fnc,
int attempts)
Ctor.
|
RetryFunc(Proc<X> proc)
Ctor.
|
RetryFunc(Proc<X> proc,
Func<Integer,Boolean> ext)
Ctor.
|
RetryFunc(Proc<X> proc,
int attempts)
Ctor.
|
public RetryFunc(Proc<X> proc, int attempts)
proc
- Func originalattempts
- Maximum number of attemptspublic RetryFunc(Proc<X> proc, Func<Integer,Boolean> ext)
proc
- Func originalext
- Exit condition, returns TRUE if there is no more reason to trypublic RetryFunc(Func<X,Y> fnc, int attempts)
fnc
- Func originalattempts
- Maximum number of attemptsCopyright © 2017 Cactoos. All rights reserved.