Ignore:
Timestamp:
06/21/13 12:42:25 (11 years ago)
Author:
stoda
Message:

Adding @MultiMethod?
Broker is not a singleton.

File:
1 edited

Legend:

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

    r44 r54  
    1515        private boolean async = false;
    1616
     17        private transient boolean multi;
    1718        private transient long timeout;
    1819        private transient int retries;
     
    3435        }
    3536
     37        public Request(String id2, String method2, boolean b, Object[] params2, boolean multi2) {
     38                // TODO Auto-generated constructor stub
     39        }
     40
    3641        public static Request newSyncRequest(String id, String method, Object[] params) {
    3742                return new Request(id, method, false, params);
     
    4550        }
    4651
    47         public static Request newAsyncRequest(String id, String method, Object[] params) {
    48                 return new Request(id, method, true, params);
     52        public static Request newAsyncRequest(String id, String method, Object[] params, boolean multi) {
     53                return new Request(id, method, true, params, multi);
    4954        }
    5055
     
    97102        }
    98103
     104        public boolean isMulti() {
     105                return multi;
     106        }
     107
     108        public void setMulti(boolean multi) {
     109                this.multi = multi;
     110        }
    99111}
Note: See TracChangeset for help on using the changeset viewer.