javax.ejb.TimerConfig Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package javax.ejb;
import 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.
*
*
* @author Carlo de Wolf
* @version $Revision$
* @since 3.1
*/
public class TimerConfig
{
private Serializable info;
// Persistent by default
private boolean persistent = true;
public TimerConfig()
{
}
public TimerConfig(Serializable info, boolean persistent)
{
this.info = info;
this.persistent = persistent;
}
public Serializable getInfo()
{
return info;
}
public boolean isPersistent()
{
return persistent;
}
public void setInfo(Serializable i )
{
this.info = i;
}
public void setPersistent(boolean p)
{
this.persistent = p;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy