Package org.spf4j.zel.vm
Class VMExecutor
- java.lang.Object
-
- org.spf4j.zel.vm.VMExecutor
-
public final class VMExecutor extends Object
- Author:
- zoly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVMExecutor.Lazystatic interfaceVMExecutor.Suspendable<T>
-
Constructor Summary
Constructors Constructor Description VMExecutor(Executor exec)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.spf4j.base.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)StringtoString()
-
-
-
Constructor Detail
-
VMExecutor
public VMExecutor(Executor exec)
-
-
Method Detail
-
synchronize
public static <T> VMExecutor.Suspendable<T> synchronize(VMExecutor.Suspendable<T> what)
-
submit
public <T> Future<T> submit(VMExecutor.Suspendable<T> callable)
-
submitInternal
public <T> Future<T> submitInternal(VMExecutor.Suspendable<T> callable)
Returns a future that will not get notified when callable completes.- Type Parameters:
T-- Parameters:
callable-- Returns:
-
resumeSuspendables
@Nullable public List<org.spf4j.base.Pair<VMExecutor.Suspendable<Object>,VMFuture<Object>>> resumeSuspendables(VMFuture<Object> future)
-
-