javax.ejb
Class TimerConfig

java.lang.Object
  extended by javax.ejb.TimerConfig

public class TimerConfig
extends java.lang.Object

Specifies the configuration of a timer.

Author:
Reza Rahman

Constructor Summary
TimerConfig()
          Constructs a new timer configuration.
TimerConfig(java.io.Serializable info, boolean persistent)
          Constructs a new timer configuration.
 
Method Summary
 java.io.Serializable getInfo()
          Gets info object associated with timer.
 boolean isPersistent()
          Indicates if timer should be persisted.
 void setInfo(java.io.Serializable info)
          Sets info object associated with timer.
 void setPersistent(boolean persistent)
          Sets if timer should be persisted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerConfig

public TimerConfig()
Constructs a new timer configuration.


TimerConfig

public TimerConfig(java.io.Serializable info,
                   boolean persistent)
Constructs a new timer configuration.

Parameters:
info - Info object associated with the timer.
persistent - Indicates if a timer should be persisted.
Method Detail

getInfo

public java.io.Serializable getInfo()
Gets info object associated with timer.

Returns:
Info object associated with timer.

setInfo

public void setInfo(java.io.Serializable info)
Sets info object associated with timer.

Parameters:
info - Info object associated with timer.

isPersistent

public boolean isPersistent()
Indicates if timer should be persisted.

Returns:
true if timer should be persisted.

setPersistent

public void setPersistent(boolean persistent)
Sets if timer should be persisted.

Parameters:
persistent - Flag to indicate if timer should be persisted.