Package com.sun.xml.ws.commons
Class ScheduledTaskManager
java.lang.Object
com.sun.xml.ws.commons.AbstractTaskManager
com.sun.xml.ws.commons.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.
- Author:
- Marek Potociar (marek.potociar at sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ThreadFactoryprotected Componentprotected Loggerprotected Stringprotected intAdds a new task for scheduled execution.voidshutdown()Stops all the tasks and shuts down the scheduled task executorAdds a new task for scheduled execution.voidMethods inherited from class com.sun.xml.ws.commons.AbstractTaskManager
close, close, getExecutorService, isClosed
-
Constructor Details
-
ScheduledTaskManager
TODO javadoc
-
-
Method Details
-
stopAllTasks
public void stopAllTasks() -
shutdown
public void shutdown()Stops all the tasks and shuts down the scheduled task executor -
startTask
Adds a new task for scheduled execution.- Parameters:
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)
-
runOnce
Adds a new task for scheduled execution.- Parameters:
task- new task to be executed regularly at a predefined rate
-
createThreadFactory
- Specified by:
createThreadFactoryin classAbstractTaskManager
-
getThreadPoolName
- Specified by:
getThreadPoolNamein classAbstractTaskManager
-
getThreadPoolSize
protected int getThreadPoolSize()- Specified by:
getThreadPoolSizein classAbstractTaskManager
-
getComponent
- Specified by:
getComponentin classAbstractTaskManager
-
getLogger
- Specified by:
getLoggerin classAbstractTaskManager
-