org.mule.api.annotations.rest
Annotation Type RestTimeout
@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface RestTimeout
This annotation can be attached to a RestCall to optionally specify a
timeout in milliseconds for the rest call. If the rest call exceeds the specified time, a RuntimeException is going
to be thrown, unless an exception is specified for the timeout.
timeout
public abstract int timeout
- Default:
- 0
exception
public abstract Class<? extends RuntimeException> exception
- Default:
- java.lang.RuntimeException.class
Copyright © 2010-2013 MuleSoft, Inc.. All Rights Reserved.