createIntervalTimer(java.util.Date initialExpiration,
long intervalDuration,
TimerConfig timerConfig)
Create an interval timer whose first expiration occurs at a given point in
time and whose subsequent expirations occur after a specified interval.

createTimer(java.util.Date initialExpiration,
long intervalDuration,
java.io.Serializable info)
Create an interval timer whose first expiration occurs at a given point in
time and whose subsequent expirations occur after a specified interval.

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.

Returns:

The newly created Timer.

Throws:

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.

EJBException - If this method could not complete due to a system-level failure.

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".

timerConfig - Timer configuration.

Returns:

The newly created Timer.

Throws:

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.

EJBException - If this method could not complete due to a system-level failure.

initialExpiration - The point in time at which the first timer expiration must occur.

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.

Returns:

The newly created Timer.

Throws:

java.lang.IllegalArgumentException - If initialExpiration is null, or initialExpiration.getTime() 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.

EJBException - If this method could not complete due to a system-level failure.

initialExpiration - The point in time at which the first timer expiration must occur.

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".

timerConfig - Timer configuration.

Returns:

The newly created Timer.

Throws:

java.lang.IllegalArgumentException - If initialExpiration is null, or initialExpiration.getTime() 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.

EJBException - If this method could not complete due to a system-level failure.