| java.lang.Object org.jboss.ejb.txtimer.TimerImpl
TimerImpl | public class TimerImpl implements javax.ejb.Timer,Synchronization(Code) | | An implementation of an EJB Timer.
Internally it uses a java.util.Timer and maintains its state in
a Tx manner.
author: Thomas.Diesler@jboss.org author: Dimitris.Andreadis@jboss.org version: $Revision: 62329 $ since: 07-Apr-2004 |
afterCompletion | public void afterCompletion(int status)(Code) | | This method is invoked after the transaction has committed or
rolled back.
Parameters: status - The status of the completed transaction. |
beforeCompletion | public void beforeCompletion()(Code) | | This method is invoked before the start of the commit or rollback
process. The method invocation is done in the context of the
transaction that is about to be committed or rolled back.
|
cancel | public void cancel() throws IllegalStateException, NoSuchObjectLocalException, EJBException(Code) | | Cause the txtimer and all its associated expiration notifications to be cancelled.
throws: IllegalStateException - If this method is invoked while the instance is ina state that does not allow access to this method. throws: javax.ejb.NoSuchObjectLocalException - If invoked on a txtimer that has expired or has been cancelled. throws: javax.ejb.EJBException - If this method could not complete due to a system-level failure. |
equals | public boolean equals(Object obj)(Code) | | Return true if objectId, createDate, periode are equal
|
getHandle | public TimerHandle getHandle() throws IllegalStateException, NoSuchObjectLocalException, EJBException(Code) | | Get a serializable handle to the txtimer. This handle can be used at a later time to
re-obtain the txtimer reference.
Handle of the Timer throws: IllegalStateException - If this method is invoked while the instance is ina state that does not allow access to this method. throws: javax.ejb.NoSuchObjectLocalException - If invoked on a txtimer that has expired or has been cancelled. throws: javax.ejb.EJBException - If this method could not complete due to a system-level failure. |
getInfo | public Serializable getInfo() throws IllegalStateException, NoSuchObjectLocalException, EJBException(Code) | | Get the information associated with the txtimer at the time of creation.
The Serializable object that was passed in at txtimer creation, or null if theinfo argument passed in at txtimer creation was null. throws: IllegalStateException - If this method is invoked while the instance is ina state that does not allow access to this method. throws: javax.ejb.NoSuchObjectLocalException - If invoked on a txtimer that has expired or has been cancelled. throws: javax.ejb.EJBException - If this method could not complete due to a system-level failure. |
getNextExpire | public long getNextExpire()(Code) | | |
getNextTimeout | public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException, EJBException(Code) | | Get the point in time at which the next txtimer expiration is scheduled to occur.
Get the point in time at which the next txtimer expiration is scheduled to occur. throws: IllegalStateException - If this method is invoked while the instance is ina state that does not allow access to this method. throws: javax.ejb.NoSuchObjectLocalException - If invoked on a txtimer that has expired or has been cancelled. throws: javax.ejb.EJBException - If this method could not complete due to a system-level failure. |
getPeriode | public long getPeriode()(Code) | | |
getTimeRemaining | public long getTimeRemaining() throws IllegalStateException, NoSuchObjectLocalException, EJBException(Code) | | Get the number of milliseconds that will elapse before the next scheduled txtimer expiration.
Number of milliseconds that will elapse before the next scheduled txtimer expiration. throws: IllegalStateException - If this method is invoked while the instance is ina state that does not allow access to this method. throws: javax.ejb.NoSuchObjectLocalException - If invoked on a txtimer that has expired or has been cancelled. throws: javax.ejb.EJBException - If this method could not complete due to a system-level failure. |
hashCode | public int hashCode()(Code) | | Hash code based on the Timers invariant properties
|
isActive | public boolean isActive()(Code) | | |
isCanceled | public boolean isCanceled()(Code) | | |
isExpired | public boolean isExpired()(Code) | | |
isInRetry | public boolean isInRetry()(Code) | | |
killTimer | public void killTimer()(Code) | | Kill the timer, and remove it from the timer service
|
startTimer | void startTimer(Date firstTime, long periode)(Code) | | |
stopTimer | public void stopTimer()(Code) | | Kill the timer, do not remove from timer service
|
toString | public String toString()(Code) | | Returns a string representation of the object.
|
|
|