Timer

Die mit der Annotation @Timeout markierte Methode eines Beans wird nach Ablauf einer Verzögerungzeit aufgerufen und es wird ihr ein Timer Objekt übergeben.

Das Timer Objekt hat die folgenden Methoden:

void cancel()
-- Cause the timer and all its associated expiration notifications to be cancelled.

TimerHandle getHandle()
-- Get a serializable handle to the timer.

Serializable getInfo()
-- Get the information associated with the timer at the time of creation.

Date getNextTimeout()
-- Get the point in time at which the next timer expiration is scheduled to occur.

long getTimeRemaining()
-- Get the number of milliseconds that will elapse before the next scheduled timer expiration.


Link

http://java.sun.com/javaee/5/docs/api/javax/ejb/Timer.html