-
- All Implemented Interfaces:
public class IOHelper
-
-
Method Summary
Modifier and Type Method Description final static <TAsyncResult extends Any> UnittryAsyncActionRecursively(String asyncActionName, Func<CompletableFuture<TAsyncResult>> asyncAction, Action1<TAsyncResult> successAction, Func<String> getContextInfoFunc, Action2<Throwable, String> failedAction, Integer retryTimes, Boolean retryWhenFailed)final static <TAsyncResult extends Any> UnittryAsyncActionRecursively(String asyncActionName, Func<CompletableFuture<TAsyncResult>> asyncAction, Action1<TAsyncResult> successAction, Func<String> getContextInfoFunc, Action2<Throwable, String> failedAction, Integer retryTimes, Boolean retryWhenFailed, Integer maxRetryTimes, Integer retryInterval)final static <TAsyncResult extends Any> UnittryAsyncActionRecursivelyWithoutResult(String asyncActionName, Func<CompletableFuture<TAsyncResult>> asyncAction, Action1<TAsyncResult> successAction, Func<String> getContextInfoFunc, Action2<Throwable, String> failedAction, Integer retryTimes, Boolean retryWhenFailed)final static <T extends Any> CompletableFuture<T>tryIOFuncAsync(Func<CompletableFuture<T>> func, String funcName)-
-
Method Detail
-
tryAsyncActionRecursively
final static <TAsyncResult extends Any> Unit tryAsyncActionRecursively(String asyncActionName, Func<CompletableFuture<TAsyncResult>> asyncAction, Action1<TAsyncResult> successAction, Func<String> getContextInfoFunc, Action2<Throwable, String> failedAction, Integer retryTimes, Boolean retryWhenFailed)
-
tryAsyncActionRecursively
final static <TAsyncResult extends Any> Unit tryAsyncActionRecursively(String asyncActionName, Func<CompletableFuture<TAsyncResult>> asyncAction, Action1<TAsyncResult> successAction, Func<String> getContextInfoFunc, Action2<Throwable, String> failedAction, Integer retryTimes, Boolean retryWhenFailed, Integer maxRetryTimes, Integer retryInterval)
-
tryAsyncActionRecursivelyWithoutResult
final static <TAsyncResult extends Any> Unit tryAsyncActionRecursivelyWithoutResult(String asyncActionName, Func<CompletableFuture<TAsyncResult>> asyncAction, Action1<TAsyncResult> successAction, Func<String> getContextInfoFunc, Action2<Throwable, String> failedAction, Integer retryTimes, Boolean retryWhenFailed)
-
tryIOFuncAsync
final static <T extends Any> CompletableFuture<T> tryIOFuncAsync(Func<CompletableFuture<T>> func, String funcName)
-
-
-
-