Ignore:
Timestamp:
06/25/13 16:38:31 (11 years ago)
Author:
stoda
Message:

@MultiMethod? + @SyncMethod? implemented and tested

File:
1 edited

Legend:

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

    r55 r58  
    1616
    1717        private transient boolean multi;
     18        private transient int wait;
    1819        private transient long timeout;
    1920        private transient int retries;
     
    4748        }
    4849
    49         public static Request newSyncRequest(String id, String method, Object[] params, int retries, long timeout, boolean multi) {
     50        public static Request newSyncRequest(String id, String method, Object[] params, int retries, long timeout, boolean multi, int wait) {
    5051                Request req = new Request(id, method, false, params, multi);
    5152                req.setRetries(retries);
    5253                req.setTimeout(timeout);
     54                req.setWait(wait);
    5355                return req;
    5456        }
     
    113115                this.multi = multi;
    114116        }
     117
     118        public int getWait() {
     119                return wait;
     120        }
     121
     122        public void setWait(int wait) {
     123                this.wait = wait;
     124        }
    115125}
Note: See TracChangeset for help on using the changeset viewer.