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 |
---|---|
(package private) void |
addRunnable(Fiber fiber) |
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)
void addRunnable(Fiber fiber)
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 (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.