javax.ejb.Timer interface defines some methods for obtaining information about timers getTimeRemaining method returns the number of milliseconds that will elapse before the next scheduled timer expiration.
- getNextTimeout returns the point in time at which the next timer expiration is scheduled to occur.
- getInfo returns the object that was the last parameter of the createTimer invocation.
- getHandle returns a serializable handle to the timer. This handle can be used at a later time to re-obtain the timer reference.