Class AsyncUtils
java.lang.Object
dev.getelements.elements.sdk.model.util.AsyncUtils
Special type for handling some async operations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncUtils
<T> T
doNoThrow
(Consumer<Throwable> exceptionConsumer, AsyncUtils.AsyncOperation<T> operation) <T> T
doNoThrow
(Consumer<Throwable> exceptionConsumer, AsyncUtils.AsyncOperation<T> operation, Supplier<T> ifException) void
doNoThrowV
(Consumer<Throwable> exceptionConsumer, AsyncUtils.AsyncOperationV operation)
-
Constructor Details
-
AsyncUtils
-
AsyncUtils
public AsyncUtils(org.slf4j.Logger logger)
-
-
Method Details
-
defaultInstance
-
doNoThrowV
-
doNoThrow
public <T> T doNoThrow(Consumer<Throwable> exceptionConsumer, AsyncUtils.AsyncOperation<T> operation) -
doNoThrow
public <T> T doNoThrow(Consumer<Throwable> exceptionConsumer, AsyncUtils.AsyncOperation<T> operation, Supplier<T> ifException)
-