Top Description Methods
jakarta.ejb

public @Interface StatefulTimeout

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention, java.util.concurrent.TimeUnit

Specifies 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 value element are as follows:

Values less than -1 are not valid.
Since
EJB 3.1

Method Summary

Modifier and TypeMethod and Description
public TimeUnit
unit()

Units used for the specified value.

public long

Returns:

a long.
value
()

The amount of time the stateful session bean can be idle.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

unitback to summary
public TimeUnit unit()

Units used for the specified value.

Returns:TimeUnit

a java.util.concurrent.TimeUnit object.

valueback to summary
public 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 the unit element.
  • 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.
Values less than -1 are not valid.
Returns:long

a long.