Ignore:
Timestamp:
06/21/13 16:55:58 (11 years ago)
Author:
stoda
Message:

@MultiMethod? implemented and working with @AsyncMethod? annotation.
TODO: @Multi with SyncMethod?(waitNum = x) -> Must return a List<?>
Refactoring in Proxymq if it's necessary

File:
1 edited

Legend:

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

    r54 r55  
    3535        }
    3636
    37         public Request(String id2, String method2, boolean b, Object[] params2, boolean multi2) {
    38                 // TODO Auto-generated constructor stub
     37        private Request(String id, String method, boolean async, Object[] params, boolean multi) {
     38                this.id = id;
     39                this.method = method;
     40                this.async = async;
     41                this.params = params;
     42                this.multi = multi;
    3943        }
    4044
     
    4347        }
    4448
    45         public static Request newSyncRequest(String id, String method, Object[] params, int retries, long timeout) {
    46                 Request req = new Request(id, method, false, params);
     49        public static Request newSyncRequest(String id, String method, Object[] params, int retries, long timeout, boolean multi) {
     50                Request req = new Request(id, method, false, params, multi);
    4751                req.setRetries(retries);
    4852                req.setTimeout(timeout);
Note: See TracChangeset for help on using the changeset viewer.