javax.ejb
Тип аннотации StatefulTimeout


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface StatefulTimeout

Определяет количество времени, stateful боб сеанса может быть неактивным (не, получают любые клиентские вызовы) прежде, чем это будет иметь право на удаление контейнером.

Семантика value element are as follows:

Values less than -1 are not valid.

Since:
EJB 3.1

Required Element Summary
 long значение
          The amount of time the stateful session bean can be idle.
 
Optional Element Summary
 java.util.concurrent.TimeUnit модуль
          Units used for the specified value.
 

Element Detail

value

public abstract 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.

unit

public abstract java.util.concurrent.TimeUnit unit
Units used for the specified value.

Default:
java.util.concurrent.TimeUnit.MINUTES


Представьте ошибку или функцию

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41


Spec-Zone.ru - all specs in one place



free hit counter