Ignore:
Timestamp:
10/16/13 13:01:04 (11 years ago)
Author:
stoda
Message:

MultiMethod? without numWait -> it depends on the timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/supervisor/src/main/java/omq/common/message/Request.java

    r83 r104  
    2525
    2626        private transient boolean multi;
    27         private transient int wait;
    2827        private transient long timeout;
    2928        private transient int retries;
     
    7877         * @param multi
    7978         *            - If the method is multi
    80          * @param wait
    81          *            - If the method is multi how many responses will be listened
    8279         * @return - new SyncRequest
    8380         */
    84         public static Request newSyncRequest(String id, String method, Object[] params, int retries, long timeout, boolean multi, int wait) {
     81        public static Request newSyncRequest(String id, String method, Object[] params, int retries, long timeout, boolean multi) {
    8582                Request req = new Request(id, method, false, params, multi);
    8683                req.setRetries(retries);
    8784                req.setTimeout(timeout);
    88                 req.setWait(wait);
    8985                return req;
    9086        }
     
    163159        }
    164160
    165         public int getWait() {
    166                 return wait;
    167         }
    168 
    169         public void setWait(int wait) {
    170                 this.wait = wait;
    171         }
    172161}
Note: See TracChangeset for help on using the changeset viewer.