- java.lang.Object
-
- jakarta.ejb.TimerConfig
-
public class TimerConfig extends java.lang.ObjectTimerConfig is used to specify additional timer configuration settings during timer creation.
The
infoobject represents a serializable object made available to corresponding timer callbacks. It is optional and defaults tonull.The
persistentproperty 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
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Serializableinfo_private booleanpersistent_
-
Constructor Summary
Constructors Constructor Description TimerConfig()Constructor for TimerConfig.TimerConfig(java.io.Serializable info, boolean persistent)Constructor for TimerConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.SerializablegetInfo()Return theinfoobject made available to timer callbacks.booleanisPersistent()Return whether the timer is persistent.voidsetInfo(java.io.Serializable i)Set theinfoobject made available to timer callbacks.voidsetPersistent(boolean p)Specify whether the timer is persistent.java.lang.StringtoString()
-
-
-
Method Detail
-
setInfo
public void setInfo(java.io.Serializable i)
Set theinfoobject made available to timer callbacks.- Parameters:
i- the info object
-
getInfo
public java.io.Serializable getInfo()
Return theinfoobject 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-