|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) public @interface Timeout
Class or method level annotation that indicates the calling thread should not wait longer than the provided timeout for the results of a command.
Required Element Summary | |
---|---|
int |
value
Indicates the amount of time the dispatching thread may wait for a result. |
Optional Element Summary | |
---|---|
TimeUnit |
unit
Indicates the unit in which the timeout is declared. |
Element Detail |
---|
public abstract int value
public abstract TimeUnit unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |