Interface RepeatOperations

  • All Known Implementing Classes:
    RepeatTemplate

    public interface RepeatOperations
    Repeats RepeatCallbacks a defined amount of times
    • Method Detail

      • repeat

        <T,​E extends ThrowableList<T> repeat​(RepeatCallback<T,​E> repeatCallback,
                                                     int times)
                                              throws E extends Throwable
        repats RepeatCallback a defined amount of times and returns the results.
        Type Parameters:
        T - return type of repeatCallback
        E - exceptions for repeatCallback
        Parameters:
        repeatCallback - method to execute
        times - how many times to execute repeatCallback
        Returns:
        a List of values from RepeatCallback
        Throws:
        E - an error if any errors are thrown in RepeatCallback
        E extends Throwable