|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.factories.ThreadUtils
Some tools for starting threads.
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
ThreadUtils()
|
|
| Method Summary | |
static java.lang.Thread |
daemonize(java.lang.Runnable task)
Create a new daemon thread for a Runnable . |
static java.lang.Thread |
daemonize(java.lang.Runnable task,
java.lang.String name)
Create a new daemon thread for a Runnable . |
static java.lang.Thread |
daemonizeFixedTimer(java.lang.Runnable task,
java.util.Date start,
long interval)
Create a new daemon thread with a fixed timer for a Runnable . |
static java.lang.Thread |
daemonizeFixedTimer(java.lang.Runnable task,
java.util.Date start,
long interval,
java.lang.String name)
Create a new daemon thread with a fixed timer for a Runnable . |
static java.lang.Thread |
daemonizeFixedTimer(java.lang.Runnable task,
long delay,
long interval)
Create a new daemon thread with a fixed timer for a Runnable . |
static java.lang.Thread |
daemonizeFixedTimer(java.lang.Runnable task,
long delay,
long interval,
java.lang.String name)
Create a new daemon thread with a fixed timer for a Runnable . |
static java.lang.ThreadGroup |
getRootThreadGroup()
Get the root thread group (the system thread group). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThreadUtils()
| Method Detail |
public static java.lang.ThreadGroup getRootThreadGroup()
ThreadGroup at top level.public static java.lang.Thread daemonize(java.lang.Runnable task)
Runnable .task - the Runnable to execute by the task.Thread , marked as daemon and already started.
public static java.lang.Thread daemonize(java.lang.Runnable task,
java.lang.String name)
Runnable .task - the Runnable to execute by the task.name - a String with the name of the thread.Thread , marked as daemon and already started.
public static java.lang.Thread daemonizeFixedTimer(java.lang.Runnable task,
java.util.Date start,
long interval)
Runnable .task - the Runnable to execute by the task.start - a Date with the start date for the timer.interval - a long with the delay between each call to the
task in milliseconds.Thread , marked as daemon and already started.
public static java.lang.Thread daemonizeFixedTimer(java.lang.Runnable task,
java.util.Date start,
long interval,
java.lang.String name)
Runnable .task - the Runnable to execute by the task.start - a Date with the start date for the timer.interval - a long with the delay between each call to the
task in milliseconds.name - a String with the name of the thread.Thread , marked as daemon and already started.
public static java.lang.Thread daemonizeFixedTimer(java.lang.Runnable task,
long delay,
long interval)
Runnable .task - the Runnable to execute by the task.delay - a long with the delay for the first call to the
task in milliseconds.interval - a long with the delay between each call to the
task in milliseconds.Thread , marked as daemon and already started.
public static java.lang.Thread daemonizeFixedTimer(java.lang.Runnable task,
long delay,
long interval,
java.lang.String name)
Runnable .task - the Runnable to execute by the task.delay - a long with the delay for the first call to the
task in milliseconds.interval - a long with the delay between each call to the
task in milliseconds.name - a String with the name of the thread.Thread , marked as daemon and already started.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||