Class RepeatTemplate

    • Constructor Detail

      • RepeatTemplate

        public RepeatTemplate()
    • Method Detail

      • repeat

        public <T,​E extends ThrowableList<T> repeat​(RepeatCallback<T,​E> repeatCallback,
                                                            int times)
                                                     throws E extends Throwable
        Description copied from interface: RepeatOperations
        repats RepeatCallback a defined amount of times and returns the results.
        Specified by:
        repeat in interface RepeatOperations
        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