- java.lang.Object
-
- javax.ejb.TimerConfig
-
public class TimerConfig extends Object
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 tonull
.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 totrue
.- Since:
- EJB 3.1
-
-
Constructor Summary
Constructors Constructor and Description TimerConfig()
TimerConfig(Serializable info, boolean persistent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Serializable
getInfo()
Return theinfo
object made available to timer callbacks.boolean
isPersistent()
Return whether the timer is persistent.void
setInfo(Serializable i)
Set theinfo
object made available to timer callbacks.void
setPersistent(boolean p)
Specify whether the timer is persistent.String
toString()
-
-
-
Constructor Detail
-
TimerConfig
public TimerConfig()
-
TimerConfig
public TimerConfig(Serializable info, boolean persistent)
-
-
Method Detail
-
setInfo
public void setInfo(Serializable i)
Set theinfo
object made available to timer callbacks.- Parameters:
i
- the info object
-
getInfo
public Serializable 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
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/ejb/TimerConfig.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.