Package com._1c.g5.v8.dt.common
Interface INonCancelableEvalCompletableFutureStrategy<T,E extends org.eclipse.core.runtime.CoreException>
- All Superinterfaces:
IEvalCompletableFutureStrategy<T,E>
- All Known Implementing Classes:
WaitForDebugProcessesTerminationStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface INonCancelableEvalCompletableFutureStrategy<T,E extends org.eclipse.core.runtime.CoreException>
extends IEvalCompletableFutureStrategy<T,E>
Non-cancelable variant of
#IEvalCompletableFutureStrategy.-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.common.IEvalCompletableFutureStrategy
INFINITE_TIMEOUT -
Method Summary
Modifier and TypeMethodDescriptionevalCompletableFutureGet(CompletableFuture<T> completableFuture, long timeout, TimeUnit timeUnit) Evaluate one of the CompletableFuture::get methods with any additional actions that need to be performed before and after.
-
Method Details
-
evalCompletableFutureGet
T evalCompletableFutureGet(CompletableFuture<T> completableFuture, long timeout, TimeUnit timeUnit) throws E, TimeoutException Description copied from interface:IEvalCompletableFutureStrategyEvaluate one of the CompletableFuture::get methods with any additional actions that need to be performed before and after. - Specified by:
evalCompletableFutureGetin interfaceIEvalCompletableFutureStrategy<T,E extends org.eclipse.core.runtime.CoreException> - Parameters:
completableFuture- Future which result is need, must not benull.timeout- Future result wait timeout. Must be greater or equal 0 orIEvalCompletableFutureStrategy.INFINITE_TIMEOUT.timeUnit- Units oftimeout, can benulliftimeoutis equalINFINITE_TIMEOUT.- Returns:
- result of Completable Future, can be
null. - Throws:
TimeoutException- if there was waiting timeout.E extends org.eclipse.core.runtime.CoreException
-