Changeset 82 for trunk/src/main/java/omq/client/annotation
- Timestamp:
- 07/05/13 16:51:11 (11 years ago)
- Location:
- trunk/src/main/java/omq/client/annotation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/client/annotation/MultiMethod.java
r54 r82 9 9 @Target(ElementType.METHOD) 10 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 */ 11 17 int waitNum() default 1; 12 18 } -
trunk/src/main/java/omq/client/annotation/RemoteInterface.java
r44 r82 10 10 * Annotation which indicates which is the remote interface that can have 11 11 * asynchmethods or syncmethods. By default every method without an annotation 12 * will be classified as a SyncMethod 12 * will be classified as a SyncMethod. Both annotations can be preceded by the @MultiMethod 13 * annotation. 13 14 * 14 15 * @author Sergi Toda <sergi.toda@estudiants.urv.cat> -
trunk/src/main/java/omq/client/annotation/SyncMethod.java
r44 r82 17 17 @Target(ElementType.METHOD) 18 18 public @interface SyncMethod { 19 /** 20 * Timeout of a synchronous method 21 * 22 * @return how long we'll wait for a response 23 */ 19 24 long timeout() default 60000L; 20 25 26 /** 27 * Number of retries of a synchronous method 28 * 29 * @return how many retries we'll make. If the timeout is set, every timeout 30 * will use it 31 */ 21 32 int retry() default 1; 22 33 }
Note: See TracChangeset
for help on using the changeset viewer.