Class WrapperFuncs

java.lang.Object
com.knowm.xchange.serum.core.WrapperFuncs

public class WrapperFuncs extends Object
  • 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 attempt
      retryInterval - how often we should retry
      Returns:
      a value if expected