Class Timeout


  • public class Timeout
    extends Object
    ejb-jar_3_1.xsd class that combines the access-timeoutType and session-timeoutType xml types which have the same structure.

    Java class for access-timeoutType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="access-timeoutType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="timeout" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType"/>
             <element name="unit" type="{http://java.sun.com/xml/ns/javaee}time-unit-typeType"/>
           </sequence>
           <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
         </restriction>
       </complexContent>
     </complexType>
     

    Java class for stateful-timeoutType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="stateful-timeoutType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="timeout" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType"/>
             <element name="unit" type="{http://java.sun.com/xml/ns/javaee}time-unit-typeType"/>
           </sequence>
           <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • timeout

        protected long timeout
    • Constructor Detail

      • Timeout

        public Timeout()
    • Method Detail

      • getTimeout

        public long getTimeout()
      • setTimeout

        public void setTimeout​(long value)
      • setUnit

        public void setUnit​(TimeUnit value)
      • getId

        public String getId()
      • setId

        public void setId​(String value)