|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jetlang.fibers.PoolFiberFactory
public class PoolFiberFactory
Factory that creates Fiber
instances that share threads.
Constructor Summary | |
---|---|
PoolFiberFactory(java.util.concurrent.Executor executor)
Construct a new instance. |
Method Summary | |
---|---|
Fiber |
create()
Create a new Fiber from this pool. |
Fiber |
create(BatchExecutor batchExecutor)
Create a new Fiber from this pool that uses the supplied Executor to execute commands |
void |
dispose()
Dispose this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PoolFiberFactory(java.util.concurrent.Executor executor)
executor
- Executor to use for flushing pending commands for each created FiberMethod Detail |
---|
public Fiber create()
create(BatchExecutor)
with a SynchronousExecutor
public Fiber create(BatchExecutor batchExecutor)
Executor
to execute commands
batchExecutor
- Executor to use for command executor. Required.
public void dispose()
Disposable
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |