public final class ScheduledTaskManager extends AbstractTaskManager
| Constructor and Description |
|---|
ScheduledTaskManager(String name,
com.sun.xml.ws.api.Component component)
TODO javadoc
|
| Modifier and Type | Method and Description |
|---|---|
protected ThreadFactory |
createThreadFactory() |
protected com.sun.xml.ws.api.Component |
getComponent() |
protected com.sun.istack.logging.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() |
close, close, getExecutorService, isClosedpublic ScheduledTaskManager(String name, com.sun.xml.ws.api.Component component)
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 com.sun.xml.ws.api.Component getComponent()
getComponent in class AbstractTaskManagerprotected com.sun.istack.logging.Logger getLogger()
getLogger in class AbstractTaskManagerCopyright © 2005–2018 Oracle Corporation. All rights reserved.