source: trunk/src/main/java/omq/client/annotation/MultiMethod.java

Last change on this file was 83, checked in by stoda, 11 years ago

J

File size: 622 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 Multi.
10 *
11 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
12 *
13 */
14@Retention(RetentionPolicy.RUNTIME)
15@Target(ElementType.METHOD)
16public @interface MultiMethod {
17        /**
18         * If @MultiMethod is followed by @SyncMethod waitNum indicates how many
19         * responses we will wait for.
20         *
21         * @return length of the array of responses we are waiting for.
22         */
23        int waitNum() default 1;
24}
Note: See TracBrowser for help on using the repository browser.