@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Timeout
The method to which the Timeout
annotation is applied
must have one of the following signatures, where
designates the method name:
voidA timeout callback method can have public, private, protected, or package level access. A timeout callback method must not be declared as final or static. Timeout callback methods must not throw application exceptions.() void (Timer timer)
If the bean implements the TimedObject
interface, the
Timeout
annotation can only be applied to the
ejbTimeout
method.
Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.