com.sun.xml.ws.api.pipe
Class Engine
java.lang.Object
com.sun.xml.ws.api.pipe.Engine
public class Engine
- extends Object
Collection of Fiber
s.
Owns an Executor
to run them.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
public final String id
Engine
public Engine(String id,
Executor threadPool)
Engine
public Engine(String id,
Container container,
Executor threadPool)
Engine
public Engine(String id)
Engine
public Engine(String id,
Container container)
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
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.