Class EJBPersistentTimerInfo
java.lang.Object
com.ibm.websphere.ejbcontainer.mbean.EJBPersistentTimerInfo
The snapshot of the data for a persistent timer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe administrative application name that contains the EJB that created the timer.Returns the name of the method that is declared to have the automatic timer, or null if the timer is not an automatic timer.getEJB()
The EJB name that created the timer.getId()
The unique ID of the timer as stored in the datastore.getInfo()
ReturnstoString()
of the info object used to create the timer, or null if no info object was used to create the timer, the application is not currently running and the class cannot be loaded, or an error occurs while invoking thetoString()
method.The module URI that contains the EJB that created the timer.long
The next timeout inSystem.currentTimeMillis()
format.Returns a string representation of thejavax.ejb.ScheduleExpression
used to create the calendar timer, or null if the timer is not a calendar timer.void
setApplication
(String application) void
setAutomaticTimerMethod
(String automaticTimerMethod) void
void
void
void
void
setNextTimeout
(long nextTimeout) void
setScheduleExpression
(String scheduleExpression) toString()
-
Constructor Details
-
EJBPersistentTimerInfo
public EJBPersistentTimerInfo()
-
-
Method Details
-
toString
-
getId
The unique ID of the timer as stored in the datastore. This ID uniquely identifies the timer and will not change for the duration of the timer's existence. -
setId
-
getApplication
The administrative application name that contains the EJB that created the timer. -
setApplication
-
getModule
The module URI that contains the EJB that created the timer. -
setModule
-
getEJB
The EJB name that created the timer. -
setEJB
-
getNextTimeout
public long getNextTimeout()The next timeout inSystem.currentTimeMillis()
format. This time might be in the past if the timer was delayed or requires catch-ups. -
setNextTimeout
public void setNextTimeout(long nextTimeout) -
getInfo
ReturnstoString()
of the info object used to create the timer, or null if no info object was used to create the timer, the application is not currently running and the class cannot be loaded, or an error occurs while invoking thetoString()
method. -
setInfo
-
getScheduleExpression
Returns a string representation of thejavax.ejb.ScheduleExpression
used to create the calendar timer, or null if the timer is not a calendar timer. The returned string is intended for human display, so the format is unspecified and might change in the future. -
setScheduleExpression
-
getAutomaticTimerMethod
Returns the name of the method that is declared to have the automatic timer, or null if the timer is not an automatic timer. This is intended to help disambiguate the specific automatic timer if the EJB declares multiple automatic timers on different methods, but it will not be unique if the EJB declares multiple automatic timers on the same method. -
setAutomaticTimerMethod
-