Changeset 54 for trunk/src/main/java/omq/common/message
- Timestamp:
- 06/21/13 12:42:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/common/message/Request.java
r44 r54 15 15 private boolean async = false; 16 16 17 private transient boolean multi; 17 18 private transient long timeout; 18 19 private transient int retries; … … 34 35 } 35 36 37 public Request(String id2, String method2, boolean b, Object[] params2, boolean multi2) { 38 // TODO Auto-generated constructor stub 39 } 40 36 41 public static Request newSyncRequest(String id, String method, Object[] params) { 37 42 return new Request(id, method, false, params); … … 45 50 } 46 51 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); 49 54 } 50 55 … … 97 102 } 98 103 104 public boolean isMulti() { 105 return multi; 106 } 107 108 public void setMulti(boolean multi) { 109 this.multi = multi; 110 } 99 111 }
Note: See TracChangeset
for help on using the changeset viewer.