|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.component.quartz.EasyBeansTimer
public class EasyBeansTimer
Implementation of the Timer interface of EJB specification.
Field Summary | |
---|---|
private EasyBeansJobDetail |
jobDetail
Job Detail for this timer. |
private org.quartz.Scheduler |
scheduler
Scheduler used for this timer. |
private org.quartz.Trigger |
trigger
Trigger used by this timer. |
Constructor Summary | |
---|---|
EasyBeansTimer(EasyBeansJobDetail jobDetail,
org.quartz.Trigger trigger,
org.quartz.Scheduler scheduler)
Create a new Timer object with the given objects (job, trigger and scheduler). |
Method Summary | |
---|---|
void |
cancel()
Cause the timer and all its associated expiration notifications to be cancelled. |
TimerHandle |
getHandle()
Get a serializable handle to the timer. |
java.io.Serializable |
getInfo()
Get the information associated with the timer at the time of creation. |
java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private EasyBeansJobDetail jobDetail
private org.quartz.Trigger trigger
private org.quartz.Scheduler scheduler
Constructor Detail |
---|
public EasyBeansTimer(EasyBeansJobDetail jobDetail, org.quartz.Trigger trigger, org.quartz.Scheduler scheduler)
jobDetail
- the given job used to cancel the timer or in order to get Serializable infotrigger
- the trigger used to get the next firescheduler
- for canceling jobsMethod Detail |
---|
public void cancel() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException
cancel
in interface Timer
java.lang.IllegalStateException
- If this method is invoked while the
instance is in a state that does not allow access to this method.
NoSuchObjectLocalException
- If invoked on a timer that has expired
or has been cancelled.
EJBException
- If this method could not complete due to a
system-level failure.public long getTimeRemaining() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException
getTimeRemaining
in interface Timer
java.lang.IllegalStateException
- If this method is invoked while the
instance is in a state that does not allow access to this method.
NoSuchObjectLocalException
- If invoked on a timer that has expired
or has been cancelled.
EJBException
- If this method could not complete due to a
system-level failure.public java.util.Date getNextTimeout() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException
getNextTimeout
in interface Timer
java.lang.IllegalStateException
- If this method is invoked while the
instance is in a state that does not allow access to this method.
NoSuchObjectLocalException
- If invoked on a timer that has expired
or has been cancelled.
EJBException
- If this method could not complete due to a
system-level failure.public java.io.Serializable getInfo() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException
getInfo
in interface Timer
java.lang.IllegalStateException
- If this method is invoked while the
instance is in a state that does not allow access to this method.
NoSuchObjectLocalException
- If invoked on a timer that has expired
or has been cancelled.
EJBException
- If this method could not complete due to a
system-level failure.public TimerHandle getHandle() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException
getHandle
in interface Timer
java.lang.IllegalStateException
- If this method is invoked while the
instance is in a state that does not allow access to this method.
NoSuchObjectLocalException
- If invoked on a timer that has expired
or has been cancelled.
EJBException
- If this method could not complete due to a
system-level failure.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |