TIMEOUT (for an application)
This element set timeouts for process requests and the start of the DVM.
Syntax
<TIMEOUT [Using=component-id ]>
[<USER_AGENT>...</USER_AGENT>]
[<REQUEST_RESULT>...</REQUEST_RESULT>]
[<DVM_AVAILABLE>...</DVM_AVAILABLE>]
</TIMEOUT>
- The component-id references a component with a set of timeout definitions that are used.
Child elements
The TIMEOUT
element may contain the following child elements:
- Zero or one
USER_AGENT
element. - Zero or one
REQUEST_RESULT (for an application)
element. - Zero or one
DVM_AVAILABLE
element.
Usage
You use this element to set limits on the amount of time a DVM takes to start, and the amount of time it takes to process requests between the GAS and the client.
Timeouts are important for performance, so default values are set, and values can be configured.
Timeout settings may be defined by referencing in its Using
attribute a predefined WEB_APPLICATION_TIMEOUT_COMPONENT
to inherit timeout settings, and/or by
setting individual timeout settings specific to the application.
When settings are inherited from a
WEB_APPLICATION_TIMEOUT_COMPONENT
, settings you define locally within the
TIMEOUT
element override the component settings.
Usage example referencing a timeout component
<TIMEOUT Using="cpn.wa.timeout.set1" />
Usage example using local elements
<TIMEOUT>
<USER_AGENT>300</USER_AGENT>
<REQUEST_RESULT>240</REQUEST_RESULT>
<DVM_AVAILABLE>10</DVM_AVAILABLE>
</TIMEOUT>
Parent elements
This element is a child of the UA_OUTPUT
element.