Ignore:
Timestamp:
07/05/13 16:51:11 (11 years ago)
Author:
stoda
Message:

I've done some javadocs...

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  
    99@Target(ElementType.METHOD)
    1010public @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         */
    1117        int waitNum() default 1;
    1218}
  • trunk/src/main/java/omq/client/annotation/RemoteInterface.java

    r44 r82  
    1010 * Annotation which indicates which is the remote interface that can have
    1111 * 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.
    1314 *
    1415 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
  • trunk/src/main/java/omq/client/annotation/SyncMethod.java

    r44 r82  
    1717@Target(ElementType.METHOD)
    1818public @interface SyncMethod {
     19        /**
     20         * Timeout of a synchronous method
     21         *
     22         * @return how long we'll wait for a response
     23         */
    1924        long timeout() default 60000L;
    2025
     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         */
    2132        int retry() default 1;
    2233}
Note: See TracChangeset for help on using the changeset viewer.