|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.commons.AbstractTaskManager
com.sun.xml.ws.commons.ScheduledTaskManager
public final class ScheduledTaskManager
Scheduled task manager provides a higher-level API for scheduling and controlling tasks that should run on a separate thread(s). WARNING: This class is a private utility class used by WSIT implementation. Any usage outside the intedned scope is strongly discouraged. The API exposed by this class may be changed, replaced or removed without any advance notice.
| Constructor Summary | |
|---|---|
ScheduledTaskManager(String name,
Component component)
TODO javadoc |
|
| Method Summary | |
|---|---|
protected ThreadFactory |
createThreadFactory()
|
protected Component |
getComponent()
|
protected Logger |
getLogger()
|
protected String |
getThreadPoolName()
|
protected int |
getThreadPoolSize()
|
ScheduledFuture<?> |
runOnce(Runnable task)
Adds a new task for scheduled execution. |
void |
shutdown()
Stops all the tasks and shuts down the scheduled task executor |
ScheduledFuture<?> |
startTask(Runnable task,
long initialDelay,
long period)
Adds a new task for scheduled execution. |
void |
stopAllTasks()
|
| Methods inherited from class com.sun.xml.ws.commons.AbstractTaskManager |
|---|
close, close, getExecutorService, isClosed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledTaskManager(String name,
Component component)
| Method Detail |
|---|
public void stopAllTasks()
public void shutdown()
public ScheduledFuture<?> startTask(Runnable task,
long initialDelay,
long period)
task - new task to be executed regularly at a defined rateinitialDelay - the time to delay first execution (in milliseconds)period - the period between successive executions (in milliseconds)public ScheduledFuture<?> runOnce(Runnable task)
task - new task to be executed regularly at a predefined rateprotected ThreadFactory createThreadFactory()
createThreadFactory in class AbstractTaskManagerprotected String getThreadPoolName()
getThreadPoolName in class AbstractTaskManagerprotected int getThreadPoolSize()
getThreadPoolSize in class AbstractTaskManagerprotected Component getComponent()
getComponent in class AbstractTaskManagerprotected Logger getLogger()
getLogger in class AbstractTaskManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||