javax.ejb
Annotation Type StatefulTimeout


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

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


Required Element Summary
 long value
           
 
Optional Element Summary
 java.util.concurrent.TimeUnit unit
           
 

Element Detail

value

public abstract long value

unit

public abstract java.util.concurrent.TimeUnit unit
Default:
java.util.concurrent.TimeUnit.MINUTES


Submit a bug or feature

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

Generated on 4-June-2010 04:34