@Documented @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface Timeout
This annotation must be used within an interface, as opposed to a class definition, in order for it to take effect. In other words, when you write your remote POJO, this annotation must be used in the remote POJO's interface - not its implementation class.
| Modifier and Type | Required Element and Description |
|---|---|
long |
value
Sets the amount of time, in milliseconds, that the method (or methods if annotating an interface)
will wait before timing out.
|
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.