|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.session.EasyBeansSessionContext.DummyTimerService
class EasyBeansSessionContext.DummyTimerService
Dummy class for handling Timer Service.
Constructor Summary | |
---|---|
EasyBeansSessionContext.DummyTimerService()
|
Method Summary | |
---|---|
javax.ejb.Timer |
createTimer(java.util.Date initialDuration,
long intervalDuration,
java.io.Serializable info)
Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval. |
javax.ejb.Timer |
createTimer(java.util.Date expiration,
java.io.Serializable info)
Create a single-action timer that expires at a given point in time. |
javax.ejb.Timer |
createTimer(long initialDuration,
long intervalDuration,
java.io.Serializable info)
Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval. |
javax.ejb.Timer |
createTimer(long duration,
java.io.Serializable info)
Create a single-action timer that expires after a specified duration. |
java.util.Collection |
getTimers()
Get all the active timers associated with this bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
EasyBeansSessionContext.DummyTimerService()
Method Detail |
---|
public javax.ejb.Timer createTimer(java.util.Date initialDuration, long intervalDuration, java.io.Serializable info) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, javax.ejb.EJBException
createTimer
in interface javax.ejb.TimerService
initialDuration
- - The number of milliseconds that must elapse
before the first timer expiration notification.intervalDuration
- - The number of milliseconds that must elapse
between timer expiration notifications. Expiration
notifications are scheduled relative to the time of the first
expiration. If expiration is delayed(e.g. due to the
interleaving of other method calls on the bean) two or more
expiration notifications may occur in close succession to
"catch up".info
- - Application information to be delivered along with the
timer expiration. This can be null.
java.lang.IllegalArgumentException
- - If initialDuration is negative, or
intervalDuration is negative.
java.lang.IllegalStateException
- - If this method is invoked while the
instance is in a state that does not allow access to this
method.
javax.ejb.EJBException
- - If this method could not complete due to a
system-level failure.public javax.ejb.Timer createTimer(java.util.Date expiration, java.io.Serializable info) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, javax.ejb.EJBException
createTimer
in interface javax.ejb.TimerService
expiration
- - The point in time at which the timer must expire.info
- - Application information to be delivered along with the
timer expiration notification. This can be null.
java.lang.IllegalArgumentException
- - If expiration is null, or
expiration.getTime() is negative.
java.lang.IllegalStateException
- - If this method is invoked while the
instance is in a state that does not allow access to this
method.
javax.ejb.EJBException
- - If this method could not complete due to a
system-level failure.public javax.ejb.Timer createTimer(long initialDuration, long intervalDuration, java.io.Serializable info) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, javax.ejb.EJBException
createTimer
in interface javax.ejb.TimerService
initialDuration
- - The number of milliseconds that must elapse
before the first timer expiration notification.intervalDuration
- - The number of milliseconds that must elapse
between timer expiration notifications. Expiration
notifications are scheduled relative to the time of the first
expiration. If expiration is delayed(e.g. due to the
interleaving of other method calls on the bean) two or more
expiration notifications may occur in close succession to
"catch up".info
- - Application information to be delivered along with the
timer expiration. This can be null.
java.lang.IllegalArgumentException
- - If initialDuration is negative, or
intervalDuration is negative.
java.lang.IllegalStateException
- - If this method is invoked while the
instance is in a state that does not allow access to this
method.
javax.ejb.EJBException
- - If this method could not complete due to a
system-level failure.public javax.ejb.Timer createTimer(long duration, java.io.Serializable info) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, javax.ejb.EJBException
createTimer
in interface javax.ejb.TimerService
duration
- - The number of milliseconds that must elapse before
the timer expires.info
- - Application information to be delivered along with the
timer expiration notification. This can be null.
java.lang.IllegalArgumentException
- - If duration is negative
java.lang.IllegalStateException
- - If this method is invoked while the
instance is in a state that does not allow access to this
method.
javax.ejb.EJBException
- - If this method fails due to a system-level
failure.public java.util.Collection getTimers() throws java.lang.IllegalStateException, javax.ejb.EJBException
getTimers
in interface javax.ejb.TimerService
java.lang.IllegalStateException
- - If this method is invoked while the
instance is in a state that does not allow access to this
method.
javax.ejb.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 |