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

I've done some javadocs...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main/java/omq/client/proxy/Proxymq.java

    r77 r82  
    2727
    2828/**
    29  * EvoProxy class. This class inherits from InvocationHandler and gives you a
    30  * proxy with a server using an environment
     29 * Proxymq class. This class inherits from InvocationHandler, for this reason
     30 * each proxymq instance has an associated invocation handler. When a method is
     31 * invoked on a proxymq instance, the method invocation is encoded and
     32 * dispatched to the invoke method of its invocation handler.
    3133 *
    3234 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
     
    6668
    6769        /**
    68          * EvoProxy Constructor.
     70         * Proxymq Constructor.
    6971         *
    7072         * This constructor uses an uid to know which object will call. It also uses
     
    131133        }
    132134
     135        /**
     136         * This method publishes a request
     137         *
     138         * @param request
     139         *            - this request contains which method and which params will be
     140         *            invoked in the server side.
     141         * @param replyQueueName
     142         *            - this param indicates where the responseListener will be
     143         *            listen to.
     144         * @throws Exception
     145         */
    133146        private void publishMessage(Request request, String replyQueueName) throws Exception {
    134147                String corrId = request.getId();
     
    158171        }
    159172
     173        /**
     174         * This method publishes a synchronous request
     175         *
     176         * @param request
     177         *            - this request contains which method and which params will be
     178         *            invoked in the server side.
     179         * @param type
     180         *            - indicates which return type we are waiting for
     181         * @return serverResponse
     182         * @throws Exception
     183         */
    160184        private Object publishSyncRequest(Request request, Class<?> type) throws Exception {
    161185                String corrId = request.getId();
     
    170194                                publishMessage(request, replyQueueName);
    171195                                if (request.isMulti()) {
    172                                         return getResults(corrId, 2, timeout, type);
     196                                        return getResults(corrId, request.getWait(), timeout, type);
    173197                                } else {
    174198                                        return getResult(corrId, timeout, type);
     
    183207        }
    184208
     209        /**
     210         * This method creates a request using the annotations of the Remote
     211         * interface
     212         *
     213         * @param method
     214         *            - method to invoke in the server side
     215         * @param arguments
     216         *            - arguments of the method
     217         * @return new Request
     218         */
    185219        private Request createRequest(Method method, Object[] arguments) {
    186220                String corrId = java.util.UUID.randomUUID().toString();
Note: See TracChangeset for help on using the changeset viewer.