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 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
.
Constructor and Description |
---|
TimerConfig()
Constructor for TimerConfig.
|
TimerConfig(Serializable info,
boolean persistent)
Constructor for TimerConfig.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
getInfo()
Return the
info object made available to timer callbacks. |
boolean |
isPersistent()
Return whether the timer is persistent.
|
void |
setInfo(Serializable i)
Set the
info object made available to timer callbacks. |
void |
setPersistent(boolean p)
Specify whether the timer is persistent.
|
String |
toString() |
public TimerConfig()
Constructor for TimerConfig.
public TimerConfig(Serializable info, boolean persistent)
Constructor for TimerConfig.
info
- a Serializable
object.persistent
- a boolean.public void setInfo(Serializable i)
info
object made available to timer callbacks.i
- the info objectpublic Serializable getInfo()
info
object made available to timer callbacks.public void setPersistent(boolean p)
p
- boolean indicating whether the timer is to be persistent.public boolean isPersistent()
Copyright © 2018, 2020 Eclipse Foundation.
Use is subject to license terms.