source: branches/objectmq_old/src/omq/client/annotation/SyncMethod.java

Last change on this file was 9, checked in by stoda, 12 years ago

First commit

File size: 641 bytes
Line 
1package omq.client.annotation;
2
3import java.lang.annotation.ElementType;
4import java.lang.annotation.Retention;
5import java.lang.annotation.RetentionPolicy;
6import java.lang.annotation.Target;
7
8/**
9 * Annotation which indicates a method as Synchronous. It can have two
10 * parameters: timeout and retry which will give you how long you have to wait a
11 * synchronous method and how many times you'll wait for the response.
12 *
13 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
14 *
15 */
16@Retention(RetentionPolicy.RUNTIME)
17@Target(ElementType.METHOD)
18public @interface SyncMethod {
19        long timeout() default 60000L;
20
21        int retry() default 1;
22}
Note: See TracBrowser for help on using the repository browser.