Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: tie-class
- Next: transport-config

## timeout

Specifies the cache-mapping specific maximum amount of time in seconds that an entry can remain in the cache after it is created or refreshed. If not specified, the default is the value of the `timeout` attribute of the cache element.

### Superelements

cache-mapping (`sun-web.xml`)

### Subelements

none - contains data

### Attributes

The following table describes attributes for the `timeout` element.

Table A–121 `timeout` Attributes

Attribute | Default | Description
--- | --- | ---
`name` | none | Specifies the timeout input parameter, whose value is interpreted in seconds. The field’s type must be `java.lang.Long` or `java.lang.Integer`.
`scope` | `request.attribute` | (optional) Specifies the scope from which the input parameter is retrieved. Allowed values are `context.attribute`, `request.header`, `request.parameter`, `request.cookie`, `request.attribute`, and `session.attribute`.

- Previous: tie-class
- Next: transport-config

- © 2010, Oracle Corporation and/or its affiliates