Changeset 54 for trunk/src/main/java/omq/client/proxy/Proxymq.java
- Timestamp:
- 06/21/13 12:42:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/client/proxy/Proxymq.java
r53 r54 15 15 import omq.Remote; 16 16 import omq.client.annotation.AsyncMethod; 17 import omq.client.annotation.MultiMethod; 17 18 import omq.client.annotation.SyncMethod; 18 19 import omq.client.listener.ResponseListener; … … 133 134 Request request = createRequest(method, arguments); 134 135 135 // Log.saveTimeSendRequestLog("Client-time-request", request.getId(),136 // method.getName(), timeStart);137 138 136 Object response = null; 139 137 // Publish the request … … 144 142 logger.debug("Publish sync request -> " + request.getId()); 145 143 response = publishSyncRequest(request, method.getReturnType()); 146 147 // long timeEnd = (new Date()).getTime();148 // Log.saveTimeSendRequestLog("Client-time-response",149 // request.getId(), method.getName(), timeEnd);150 144 } 151 145 … … 168 162 // channel.basicPublish(exchange, routingkey, props, bytesRequest); 169 163 broker.getChannel().basicPublish(exchange, routingkey, props, bytesRequest); 170 // Log.saveLog("Client-Serialize", bytesRequest);171 164 } 172 165 … … 203 196 String corrId = java.util.UUID.randomUUID().toString(); 204 197 String methodName = method.getName(); 198 boolean multi = false; 199 200 if (method.getAnnotation(MultiMethod.class) != null) { 201 multi = true; 202 } 205 203 206 204 // Since we need to know whether the method is async and if it has to … … 217 215 return Request.newSyncRequest(corrId, methodName, arguments, retries, timeout); 218 216 } else { 219 return Request.newAsyncRequest(corrId, methodName, arguments );217 return Request.newAsyncRequest(corrId, methodName, arguments, multi); 220 218 } 221 219 } … … 237 235 } 238 236 resp = serializer.deserializeResponse(results.get(corrId), type); 239 // Log.saveLog("Client-Deserialize", results.get(corrId));240 237 241 238 // Remove and indicate the key exists (a hashmap can contain a null
Note: See TracChangeset
for help on using the changeset viewer.