Top Description Fields Constructors Methods
javax.ejb

public Class TimerConfig

extends Object
Class Inheritance
Imports
java.io.Serializable

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

Field Summary

Modifier and TypeField and Description
private Serializable
private boolean

Constructor Summary

AccessConstructor and Description
public
public
TimerConfig(Serializable info, boolean persistent)

Method Summary

Modifier and TypeMethod and Description
public Serializable

Returns:

info object
getInfo
()

Return the info object made available to timer callbacks.

public boolean

Returns:

boolean indicating whether the timer is persistent
isPersistent
()

Return whether the timer is persistent.

public void
setInfo(Serializable
the info object
i
)

Set the info object made available to timer callbacks.

public void
setPersistent(boolean
boolean indicating whether the timer is to be persistent.
p
)

Specify whether the timer is persistent.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

info_back to summary
private Serializable info_
persistent_back to summary
private boolean persistent_

Constructor Detail

TimerConfigback to summary
public TimerConfig()
TimerConfigback to summary
public TimerConfig(Serializable info, boolean persistent)

Method Detail

getInfoback to summary
public Serializable getInfo()

Return the info object made available to timer callbacks.

Returns:Serializable

info object

isPersistentback to summary
public boolean isPersistent()

Return whether the timer is persistent.

Returns:boolean

boolean indicating whether the timer is persistent

setInfoback to summary
public void setInfo(Serializable i)

Set the info object made available to timer callbacks.

Parameters
i:Serializable

the info object

setPersistentback to summary
public void setPersistent(boolean p)

Specify whether the timer is persistent.

Parameters
p:boolean

boolean indicating whether the timer is to be persistent.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.