org.rhq.core.communications.command.annotation
Annotation Type Timeout


@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface Timeout

This annotation denotes that a remote method invocation (or all method invocations, if annotating a type) will have a given timeout value.

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.

Author:
John Mazzitelli

Required Element Summary
 long value
          Sets the amount of time, in milliseconds, that the method (or methods if annotating an interface) will wait before timing out.
 

Element Detail

value

public abstract long value
Sets the amount of time, in milliseconds, that the method (or methods if annotating an interface) will wait before timing out.

Returns:
timeout value in milliseconds


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.