|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar31.AccessTimeoutTypeImpl<T>
public class AccessTimeoutTypeImpl<T>
This class implements the access-timeoutType
xsd type
Original Documentation:
The access-timeoutType represents the maximum amount of
time (in a given time unit) that the container should wait for
a concurrency lock before throwing a timeout exception to the
client.
A timeout value of 0 means concurrent access is not permitted.
A timeout value of -1 means wait indefinitely to acquire a lock.
Constructor Summary | |
---|---|
AccessTimeoutTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
AccessTimeoutTypeImpl(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 |
AccessTimeoutType<T> |
removeTimeout()
Removes the timeout element |
AccessTimeoutType<T> |
setTimeout(java.lang.Integer timeout)
If not already created, a new timeout element with the given value will be created. |
AccessTimeoutType<T> |
setUnit(java.lang.String unit)
If not already created, a new unit element with the given value will be created. |
AccessTimeoutType<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 AccessTimeoutTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public AccessTimeoutTypeImpl(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 AccessTimeoutType<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 AccessTimeoutType<T>
AccessTimeoutType
public AccessTimeoutType<T> removeTimeout()
timeout
element
removeTimeout
in interface AccessTimeoutType<T>
AccessTimeoutType
public java.lang.Integer getTimeout()
timeout
element
getTimeout
in interface AccessTimeoutType<T>
timeout
public AccessTimeoutType<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 AccessTimeoutType<T>
AccessTimeoutType
public AccessTimeoutType<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 AccessTimeoutType<T>
AccessTimeoutType
public TimeUnitTypeType getUnit()
unit
element
getUnit
in interface AccessTimeoutType<T>
unit
public java.lang.String getUnitAsString()
unit
element
getUnitAsString
in interface AccessTimeoutType<T>
unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |