Rev | Line | |
---|
[54] | 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 | |
---|
[83] | 8 | /** |
---|
| 9 | * Annotation which indicates a method as Multi. |
---|
| 10 | * |
---|
| 11 | * @author Sergi Toda <sergi.toda@estudiants.urv.cat> |
---|
| 12 | * |
---|
| 13 | */ |
---|
[54] | 14 | @Retention(RetentionPolicy.RUNTIME) |
---|
| 15 | @Target(ElementType.METHOD) |
---|
| 16 | public @interface MultiMethod { |
---|
[82] | 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 | */ |
---|
[54] | 23 | int waitNum() default 1; |
---|
| 24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.