-
@Target(TYPE) @Retention(RUNTIME) public @interface StatefulTimeoutSpecifies 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.The semantics of the
valueelement are as follows:- A value
>0 indicates a timeout value in the units specified by theunitelement. - A value of 0 means the bean is immediately eligible for removal.
- A value of -1 means the bean will never be removed due to timeout.
- Since:
- EJB 3.1
- A value
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description longvalueThe amount of time the stateful session bean can be idle.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.util.concurrent.TimeUnitunitUnits used for the specified value.
-
-
-
Element Detail
-
value
long value
The amount of time the stateful session bean can be idle. The semantics of this element are as follows:- A value
>0 indicates a timeout value in the units specified by theunitelement. - A value of 0 means the bean is immediately eligible for removal.
- A value of -1 means the bean will never be removed due to timeout.
- Returns:
- a long.
- A value
-
-