public class Engine extends Object
| Constructor and Description |
|---|
Engine(String id) |
Engine(String id,
Container container) |
Engine(String id,
Container container,
Executor threadPool) |
Engine(String id,
Executor threadPool) |
| Modifier and Type | Method and Description |
|---|---|
Fiber |
createFiber()
Creates a new fiber in a suspended state.
|
void |
setExecutor(Executor threadPool) |
public final String id
public Engine(String id)
public void setExecutor(Executor threadPool)
public Fiber createFiber()
To start the returned fiber, call Fiber.start(Tube,Packet,Fiber.CompletionCallback).
It will start executing the given Tube with the given Packet.
Copyright © 2015 Oracle Corporation. All rights reserved.