Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.javatools.util
Class NamedTimer

java.lang.Object
  extended by java.util.Timer
      extended by oracle.javatools.util.NamedTimer


public class NamedTimer
extends java.util.Timer

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

NamedTimer

public NamedTimer(java.lang.String name)
Constructs a new non-daemon NamedTimer with the specified name.
Parameters:
name - The name for the underlying timer thread.
See Also:
Thread

NamedTimer

public NamedTimer(java.lang.String name,
                  int priority)
Constructs a new non-daemon NamedTimer with the specified name and priority.
Parameters:
name - The name for the underlying timer thread.
priority - The priority for the underlying timer thread.
Throws:
java.lang.IllegalArgumentException - If the priority is not one of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, or Thread.MAX_PRIORITY.
See Also:
Thread

NamedTimer

public NamedTimer(java.lang.String name,
                  int priority,
                  boolean isDaemon)
Constructs a new NamedTimer with the specified name, priority, and daemon status.
Parameters:
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.
Throws:
java.lang.IllegalArgumentException - If the priority is not one of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, or Thread.MAX_PRIORITY.
See Also:
Thread

Method Detail

getSharedLowPriorityTimer

public static NamedTimer getSharedLowPriorityTimer()
Returns:
A daemon, min priority, shared Timer to be used for "short" duration background processing.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.