public abstract class FiberScheduler extends java.lang.Object implements FiberFactory, StrandFactory
ForkJoinPool to schedule fiber execution.| Modifier and Type | Method and Description |
|---|---|
abstract java.util.concurrent.Executor |
getExecutor() |
protected FibersMonitor |
getMonitor() |
java.lang.String |
getName() |
protected abstract int |
getQueueLength() |
protected abstract boolean |
isCurrentThreadInScheduler() |
<T> Fiber<T> |
newFiber(SuspendableCallable<T> target) |
Strand |
newStrand(SuspendableCallable<?> target) |
void |
shutdown() |
public void shutdown()
public java.lang.String getName()
protected FibersMonitor getMonitor()
public <T> Fiber<T> newFiber(SuspendableCallable<T> target)
newFiber in interface FiberFactorypublic Strand newStrand(SuspendableCallable<?> target)
newStrand in interface StrandFactoryprotected abstract int getQueueLength()
protected abstract boolean isCurrentThreadInScheduler()
public abstract java.util.concurrent.Executor getExecutor()