|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar31.StatefulTimeoutTypeImpl<T>
public class StatefulTimeoutTypeImpl<T>
This class implements the stateful-timeoutType
xsd type
Original Documentation:
The stateful-timeoutType represents the amount of time
a stateful session bean can be idle(not receive any client
invocations) before it is eligible for removal by the container.
A timeout value of 0 means the bean is immediately eligible for removal.
A timeout value of -1 means the bean will never be removed due to timeout.
Constructor Summary | |
---|---|
StatefulTimeoutTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
StatefulTimeoutTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.lang.Integer |
getTimeout()
Returns the timeout element |
TimeUnitTypeType |
getUnit()
Returns the unit element |
java.lang.String |
getUnitAsString()
Returns the unit element |
StatefulTimeoutType<T> |
removeTimeout()
Removes the timeout element |
StatefulTimeoutType<T> |
setTimeout(java.lang.Integer timeout)
If not already created, a new timeout element with the given value will be created. |
StatefulTimeoutType<T> |
setUnit(java.lang.String unit)
If not already created, a new unit element with the given value will be created. |
StatefulTimeoutType<T> |
setUnit(TimeUnitTypeType unit)
If not already created, a new unit element with the given value will be created. |
T |
up()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatefulTimeoutTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public StatefulTimeoutTypeImpl(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 StatefulTimeoutType<T> setTimeout(java.lang.Integer timeout)
timeout
element with the given value will be created.
Otherwise, the existing timeout
element will be updated with the given value.
setTimeout
in interface StatefulTimeoutType<T>
StatefulTimeoutType
public StatefulTimeoutType<T> removeTimeout()
timeout
element
removeTimeout
in interface StatefulTimeoutType<T>
StatefulTimeoutType
public java.lang.Integer getTimeout()
timeout
element
getTimeout
in interface StatefulTimeoutType<T>
timeout
public StatefulTimeoutType<T> setUnit(TimeUnitTypeType unit)
unit
element with the given value will be created.
Otherwise, the existing unit
element will be updated with the given value.
setUnit
in interface StatefulTimeoutType<T>
StatefulTimeoutType
public StatefulTimeoutType<T> setUnit(java.lang.String unit)
unit
element with the given value will be created.
Otherwise, the existing unit
element will be updated with the given value.
setUnit
in interface StatefulTimeoutType<T>
StatefulTimeoutType
public TimeUnitTypeType getUnit()
unit
element
getUnit
in interface StatefulTimeoutType<T>
unit
public java.lang.String getUnitAsString()
unit
element
getUnitAsString
in interface StatefulTimeoutType<T>
unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |