java.lang.Object
jakarta.ejb.TimerConfig
TimerConfig is used to specify additional timer configuration settings during timer creation.
The info
object represents a serializable object made available to corresponding timer callbacks. It is
optional and defaults to null
.
The persistent
property determines whether the corresponding timer has a lifetime that spans the JVM in
which it was created. It is optional and defaults to true
.
- Since:
- EJB 3.1
-
Constructor Summary
ConstructorDescriptionConstructor for TimerConfig.TimerConfig
(Serializable info, boolean persistent) Constructor for TimerConfig. -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Return theinfo
object made available to timer callbacks.boolean
Return whether the timer is persistent.void
Set theinfo
object made available to timer callbacks.void
setPersistent
(boolean p) Specify whether the timer is persistent.toString()
-
Constructor Details
-
TimerConfig
public TimerConfig()Constructor for TimerConfig.
-
TimerConfig
Constructor for TimerConfig.
- Parameters:
info
- aSerializable
object.persistent
- a boolean.
-
-
Method Details
-
setInfo
Set theinfo
object made available to timer callbacks.- Parameters:
i
- the info object
-
getInfo
Return theinfo
object made available to timer callbacks.- Returns:
- info object
-
setPersistent
public void setPersistent(boolean p) Specify whether the timer is persistent.- Parameters:
p
- boolean indicating whether the timer is to be persistent.
-
isPersistent
public boolean isPersistent()Return whether the timer is persistent.- Returns:
- boolean indicating whether the timer is persistent
-
toString
-