Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.common.util
Class Timer

java.lang.Object
  extended by java.lang.Thread
      extended by oracle.apps.fnd.applcore.common.util.Timer
All Implemented Interfaces:
java.lang.Runnable

public class Timer
extends java.lang.Thread

This Timer class allows a graceful exit when seed loader/extract called from commandline and no password is prompted. The timeout length is customizable through the constructor. The length represents the length of the timer in milliseconds.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  int mRate
          Rate at which timer is checked
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Timer(int length)
          Constructor: Creates a timer of a specified length.
 
Method Summary
 void exitTimer()
           
 void reset()
          Resets the timer back to zero
 void run()
          Performs timer specific code
 void timeout()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mRate

protected int mRate
Rate at which timer is checked

Constructor Detail

Timer

public Timer(int length)
Constructor: Creates a timer of a specified length.

Parameters:
length - - Length of time before timeout occurs
Method Detail

reset

public void reset()
Resets the timer back to zero


run

public void run()
Performs timer specific code

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

timeout

public void timeout()

exitTimer

public void exitTimer()

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.