Package com.knowm.xchange.serum.core
Class WrapperFuncs
java.lang.Object
com.knowm.xchange.serum.core.WrapperFuncs
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
runUntilSuccess
(WrapperFuncs.Callback<T> callback, int retryInterval, int retryMaximum) Method is a bit of a hack, we simply keep trying to process some function until we succeed.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
WrapperFuncs
public WrapperFuncs()
-
-
Method Details
-
runUntilSuccess
public static <T> T runUntilSuccess(WrapperFuncs.Callback<T> callback, int retryInterval, int retryMaximum) Method is a bit of a hack, we simply keep trying to process some function until we succeed. Can optionally be configured to have a maximum number of retry attempts.- Parameters:
callback
- to attemptretryInterval
- how often we should retry- Returns:
- a value if expected
-