org.mitre.jdas
Class LockoutTimer

java.lang.Object
  |
  +--java.util.Timer
        |
        +--org.mitre.jdas.LockoutTimer

public class LockoutTimer
extends java.util.Timer

The LockoutTimer class sets a lockout flag for a period of time specified by the Controller.getLockoutDelay() method. Multiple threads can fire the timer, but the timer delays concurrently rather than consequtively.

See Also:
Controller.getLockoutDelay()

Constructor Summary
LockoutTimer(Controller controller)
          Extracts the lockout delay from the Controller object.
 
Method Summary
 void fire()
          Fires a new lockout timer task to clear the lockout flag after a specified length of time.
 boolean isActive()
           
 
Methods inherited from class java.util.Timer
cancel, 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

LockoutTimer

public LockoutTimer(Controller controller)
Extracts the lockout delay from the Controller object.
See Also:
Controller
Method Detail

fire

public void fire()
Fires a new lockout timer task to clear the lockout flag after a specified length of time.

isActive

public boolean isActive()