|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar31.TimerTypeImpl<T>
public class TimerTypeImpl<T>
This class implements the timerType xsd type
Original Documentation:
The timerType specifies an enterprise bean timer. Each
timer is automatically created by the container upon
deployment. Timer callbacks occur based on the
schedule attributes. All callbacks are made to the
timeout-method associated with the timer.
A timer can have an optional start and/or end date. If
a start date is specified, it takes precedence over the
associated timer schedule such that any matching
expirations prior to the start time will not occur.
Likewise, no matching expirations will occur after any
end date. Start/End dates are specified using the
XML Schema dateTime type, which follows the ISO-8601
standard for date(and optional time-within-the-day)
representation.
An optional flag can be used to control whether
this timer has persistent(true) delivery semantics or
non-persistent(false) delivery semantics. If not specified,
the value defaults to persistent(true).
A time zone can optionally be associated with a timer.
If specified, the timer's schedule is evaluated in the context
of that time zone, regardless of the default time zone in which
the container is executing. Time zones are specified as an
ID string. The set of required time zone IDs is defined by
the Zone Name(TZ) column of the public domain zoneinfo database.
An optional info string can be assigned to the timer and
retrieved at runtime through the Timer.getInfo() method.
The timerType can only be specified on stateless session
beans, singleton session beans, and message-driven beans.
| Constructor Summary | |
|---|---|
TimerTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
TimerTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.util.Date |
getEnd()
Returns the end element |
java.lang.String |
getInfo()
Returns the info element |
java.util.Date |
getStart()
Returns the start element |
java.lang.String |
getTimezone()
Returns the timezone element |
java.lang.Boolean |
isPersistent()
Returns the persistent element |
TimerType<T> |
removeAllDescription()
Removes the description element |
TimerType<T> |
removeEnd()
Removes the end element |
TimerType<T> |
removeInfo()
Removes the info element |
TimerType<T> |
removePersistent()
Removes the persistent element |
TimerType<T> |
removeSchedule()
Removes the schedule element |
TimerType<T> |
removeStart()
Removes the start element |
TimerType<T> |
removeTimeoutMethod()
Removes the timeout-method element |
TimerType<T> |
removeTimezone()
Removes the timezone element |
TimerScheduleType<TimerType<T>> |
schedule()
If not already created, a new schedule element will be created and returned. |
TimerType<T> |
setDescription(java.lang.String description)
Creates a new description element |
TimerType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
TimerType<T> |
setEnd(java.util.Date end)
If not already created, a new end element with the given value will be created. |
TimerType<T> |
setInfo(java.lang.String info)
If not already created, a new info element with the given value will be created. |
TimerType<T> |
setPersistent(java.lang.Boolean persistent)
If not already created, a new persistent element with the given value will be created. |
TimerType<T> |
setStart(java.util.Date start)
If not already created, a new start element with the given value will be created. |
TimerType<T> |
setTimezone(java.lang.String timezone)
If not already created, a new timezone element with the given value will be created. |
NamedMethodType<TimerType<T>> |
timeoutMethod()
If not already created, a new timeout-method element will be created and returned. |
T |
up()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public TimerTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
| Method Detail |
|---|
public T up()
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>public TimerType<T> setDescription(java.lang.String description)
description element
setDescription in interface TimerType<T>TimerTypepublic TimerType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
setDescriptionList in interface TimerType<T>list - of description objects
TimerTypepublic TimerType<T> removeAllDescription()
description element
removeAllDescription in interface TimerType<T>TimerTypepublic java.util.List<java.lang.String> getDescriptionList()
description elements
getDescriptionList in interface TimerType<T>descriptionpublic TimerType<T> removeSchedule()
schedule element
removeSchedule in interface TimerType<T>TimerTypepublic TimerScheduleType<TimerType<T>> schedule()
schedule element will be created and returned.
Otherwise, the existing schedule element will be returned.
schedule in interface TimerType<T>schedulepublic TimerType<T> setStart(java.util.Date start)
start element with the given value will be created.
Otherwise, the existing start element will be updated with the given value.
setStart in interface TimerType<T>java.util.Date -
TimerTypepublic TimerType<T> removeStart()
start element
removeStart in interface TimerType<T>TimerTypepublic java.util.Date getStart()
start element
getStart in interface TimerType<T>startpublic TimerType<T> setEnd(java.util.Date end)
end element with the given value will be created.
Otherwise, the existing end element will be updated with the given value.
setEnd in interface TimerType<T>java.util.Date -
TimerTypepublic TimerType<T> removeEnd()
end element
removeEnd in interface TimerType<T>TimerTypepublic java.util.Date getEnd()
end element
getEnd in interface TimerType<T>endpublic TimerType<T> removeTimeoutMethod()
timeout-method element
removeTimeoutMethod in interface TimerType<T>TimerTypepublic NamedMethodType<TimerType<T>> timeoutMethod()
timeout-method element will be created and returned.
Otherwise, the existing timeout-method element will be returned.
timeoutMethod in interface TimerType<T>timeout-methodpublic TimerType<T> setPersistent(java.lang.Boolean persistent)
persistent element with the given value will be created.
Otherwise, the existing persistent element will be updated with the given value.
setPersistent in interface TimerType<T>TimerTypepublic TimerType<T> removePersistent()
persistent element
removePersistent in interface TimerType<T>TimerTypepublic java.lang.Boolean isPersistent()
persistent element
isPersistent in interface TimerType<T>persistentpublic TimerType<T> setTimezone(java.lang.String timezone)
timezone element with the given value will be created.
Otherwise, the existing timezone element will be updated with the given value.
setTimezone in interface TimerType<T>TimerTypepublic TimerType<T> removeTimezone()
timezone element
removeTimezone in interface TimerType<T>TimerTypepublic java.lang.String getTimezone()
timezone element
getTimezone in interface TimerType<T>timezonepublic TimerType<T> setInfo(java.lang.String info)
info element with the given value will be created.
Otherwise, the existing info element will be updated with the given value.
setInfo in interface TimerType<T>TimerTypepublic TimerType<T> removeInfo()
info element
removeInfo in interface TimerType<T>TimerTypepublic java.lang.String getInfo()
info element
getInfo in interface TimerType<T>info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||