com.sun.xml.ws.api.pipe
Class Engine

java.lang.Object
  extended by com.sun.xml.ws.api.pipe.Engine

public class Engine
extends Object

Collection of Fibers. Owns an Executor to run them.


Field Summary
 String id
           
 
Constructor Summary
Engine(String id)
           
Engine(String id, Executor threadPool)
           
 
Method Summary
(package private)  void addRunnable(Fiber fiber)
           
 Fiber createFiber()
          Creates a new fiber in a suspended state.
 void setExecutor(Executor threadPool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public final String id
Constructor Detail

Engine

public Engine(String id,
              Executor threadPool)

Engine

public Engine(String id)
Method Detail

setExecutor

public void setExecutor(Executor threadPool)

addRunnable

void addRunnable(Fiber fiber)

createFiber

public Fiber createFiber()
Creates a new fiber in a suspended state.

To start the returned fiber, call Fiber.start(Tube,Packet,Fiber.CompletionCallback). It will start executing the given Tube with the given Packet.

Returns:
new Fiber