- java.lang.Object
-
- com.github.tix320.skimp.api.interval.IntervalRepeater<T>
-
public final class IntervalRepeater<T> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TdoNext()Optional<T>doUntilSuccess(int maxCount)static IntervalRepeater<None>of(Runnable runnable, Interval interval)static <T> IntervalRepeater<T>of(Supplier<T> runnable, Interval interval)
-
-
-
Method Detail
-
doNext
public T doNext() throws InterruptedException
- Throws:
InterruptedException
-
doUntilSuccess
public Optional<T> doUntilSuccess(int maxCount) throws InterruptedException
- Throws:
InterruptedException
-
of
public static <T> IntervalRepeater<T> of(Supplier<T> runnable, Interval interval)
-
of
public static IntervalRepeater<None> of(Runnable runnable, Interval interval)
-
-