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.
| Modifier and Type | Field and Description |
|---|---|
| private Serializable | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Serializable | |
| public boolean | Returns: boolean indicating whether the timer is persistentReturn whether the timer is persistent. |
| public void | |
| public void | setPersistent(boolean
boolean indicating whether the timer is to be persistent. p)Specify whether the timer is persistent. |
| public String |
| info_ | back to summary |
|---|---|
| private Serializable info_ | |
| persistent_ | back to summary |
|---|---|
| private boolean persistent_ | |
| TimerConfig | back to summary |
|---|---|
| public TimerConfig() | |
| TimerConfig | back to summary |
|---|---|
| public TimerConfig(Serializable info, boolean persistent) | |
| getInfo | back to summary |
|---|---|
| public Serializable getInfo() Return the
| |
| isPersistent | back to summary |
|---|---|
| public boolean isPersistent() Return whether the timer is persistent.
| |
| setInfo | back to summary |
|---|---|
| public void setInfo(Serializable i) Set the
| |
| setPersistent | back to summary |
|---|---|
| public void setPersistent(boolean p) Specify whether the timer is persistent.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |