Line | |
---|
1 | package omq.client.annotation; |
---|
2 | |
---|
3 | import java.lang.annotation.ElementType; |
---|
4 | import java.lang.annotation.Retention; |
---|
5 | import java.lang.annotation.RetentionPolicy; |
---|
6 | import java.lang.annotation.Target; |
---|
7 | |
---|
8 | @Retention(RetentionPolicy.RUNTIME) |
---|
9 | @Target(ElementType.METHOD) |
---|
10 | public @interface MultiMethod { |
---|
11 | /** |
---|
12 | * If @MultiMethod is followed by @SyncMethod waitNum indicates how many |
---|
13 | * responses we will wait for. |
---|
14 | * |
---|
15 | * @return length of the array of responses we are waiting for. |
---|
16 | */ |
---|
17 | int waitNum() default 1; |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.