|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.util.Timer
oracle.javatools.util.NamedTimer
public class NamedTimer
A subclass of Timer that also allows configuring the name and priority of the underlying timer thread.
Note: Since Java 2 Platform SE 5.0, the Timer API provides constructors which set the name of the thread. This class may still be useful if you want to set the timer thread priority.
| Constructor Summary | |
|---|---|
NamedTimer(java.lang.String name)Constructs a new non-daemon NamedTimer with the specified name. |
|
NamedTimer(java.lang.String name, int priority)Constructs a new non-daemon NamedTimer with the specified name and priority. |
|
NamedTimer(java.lang.String name, int priority, boolean isDaemon)Constructs a new NamedTimer with the specified name, priority, and daemon status. |
|
| Method Summary | |
|---|---|
static NamedTimer |
getSharedLowPriorityTimer() |
| Methods inherited from class java.util.Timer |
|---|
cancel, purge, schedule, schedule, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedTimer(java.lang.String name)
NamedTimer with the specified name.
name - The name for the underlying timer thread.Thread
public NamedTimer(java.lang.String name,
int priority)
NamedTimer with the specified name and priority.
name - The name for the underlying timer thread.priority - The priority for the underlying timer thread.java.lang.IllegalArgumentException - If the priority is not one of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, or Thread.MAX_PRIORITY.Thread
public NamedTimer(java.lang.String name,
int priority,
boolean isDaemon)
NamedTimer with the specified name, priority, and daemon status.
name - The name for the underlying timer thread.priority - The priority for the underlying timer thread.isDaemon - true if the underlying thread should be run as a daemon.java.lang.IllegalArgumentException - If the priority is not one of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, or Thread.MAX_PRIORITY.Thread| Method Detail |
|---|
public static NamedTimer getSharedLowPriorityTimer()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||