|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.txtimer.TimerImpl
An implementation of an EJB Timer.
Internally it uses a java.util.Timer and maintains its state in a Tx manner.
Method Summary | |
void |
afterCompletion(int status)
This method is invoked after the transaction has committed or rolled back. |
void |
beforeCompletion()
This method is invoked before the start of the commit or rollback process. |
void |
cancel()
Cause the txtimer and all its associated expiration notifications to be cancelled. |
boolean |
equals(java.lang.Object obj)
Return true if objectId, createDate, periode are equal |
java.util.Date |
getFirstTime()
|
TimerHandle (src) |
getHandle()
Get a serializable handle to the txtimer. |
java.io.Serializable |
getInfo()
Get the information associated with the txtimer at the time of creation. |
java.io.Serializable |
getInfoInternal()
|
long |
getNextExpire()
|
java.util.Date |
getNextTimeout()
Get the point in time at which the next txtimer expiration is scheduled to occur. |
long |
getPeriode()
|
TimedObjectId (src) |
getTimedObjectId()
|
long |
getTimeRemaining()
Get the number of milliseconds that will elapse before the next scheduled txtimer expiration. |
java.lang.String |
getTimerId()
|
int |
hashCode()
Hash code based on the Timers invariant properties |
boolean |
isActive()
|
boolean |
isCanceled()
|
boolean |
isExpired()
|
void |
killTimer()
Kill the timer, and remove it from the timer service |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getTimerId()
public TimedObjectId (src) getTimedObjectId()
public java.util.Date getFirstTime()
public long getPeriode()
public long getNextExpire()
public java.io.Serializable getInfoInternal()
public boolean isActive()
public boolean isCanceled()
public boolean isExpired()
public void cancel() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
cancel
in interface Timer (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a txtimer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public void killTimer()
public long getTimeRemaining() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
getTimeRemaining
in interface Timer (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a txtimer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public java.util.Date getNextTimeout() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
getNextTimeout
in interface Timer (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a txtimer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public java.io.Serializable getInfo() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
getInfo
in interface Timer (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a txtimer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public TimerHandle (src) getHandle() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
getHandle
in interface Timer (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a txtimer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public void beforeCompletion()
beforeCompletion
in interface Synchronization (src)
public void afterCompletion(int status)
afterCompletion
in interface Synchronization (src)
status
- The status of the completed transaction.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |