Rev | Line | |
---|
[33] | 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 | /** |
---|
| 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) |
---|
| 18 | public @interface SyncMethod { |
---|
| 19 | long timeout() default 60000L; |
---|
| 20 | |
---|
| 21 | int retry() default 1; |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.