public final class VMExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VMExecutor.Lazy |
static interface |
VMExecutor.Suspendable<T> |
Constructor and Description |
---|
VMExecutor(Executor exec) |
Modifier and Type | Method and Description |
---|---|
List<Pair<VMExecutor.Suspendable<Object>,VMFuture<Object>>> |
resumeSuspendables(VMFuture<Object> future) |
<T> Future<T> |
submit(VMExecutor.Suspendable<T> callable) |
<T> Future<T> |
submitInternal(VMExecutor.Suspendable<T> callable)
Returns a future that will not get notified when callable completes.
|
<T> Future<T> |
submitNonSuspendable(Callable<T> callable) |
static <T> VMExecutor.Suspendable<T> |
synchronize(VMExecutor.Suspendable<T> what) |
String |
toString() |
public VMExecutor(Executor exec)
public static <T> VMExecutor.Suspendable<T> synchronize(VMExecutor.Suspendable<T> what)
public <T> Future<T> submit(VMExecutor.Suspendable<T> callable)
public <T> Future<T> submitInternal(VMExecutor.Suspendable<T> callable)
T
- callable
- @Nullable public List<Pair<VMExecutor.Suspendable<Object>,VMFuture<Object>>> resumeSuspendables(VMFuture<Object> future)
Copyright © 2018 SPF4J. All rights reserved.