Commit a1177225 by Amir Aharon

add ThreadPoolExecutor

parent 0173cabd
...@@ -132,8 +132,8 @@ public class IPubSubServicePulsarImpl extends CommonServices.IPubSubService { ...@@ -132,8 +132,8 @@ public class IPubSubServicePulsarImpl extends CommonServices.IPubSubService {
final PubSubMsgContext msgCtx = getMsgContext(msg); final PubSubMsgContext msgCtx = getMsgContext(msg);
if (msgCtx != null) { if (msgCtx != null) {
logger.debug(SERVICE_NAME + " > Message received: " + msgCtx.toString()); logger.debug(SERVICE_NAME + " > Message received: " + msgCtx.toString());
// consumerExecutorService.execute(() -> dispatchMsgCtx(msgCtx)); consumerExecutorService.execute(() -> dispatchMsgCtx(msgCtx));
dispatchMsgCtx(msgCtx); // dispatchMsgCtx(msgCtx);
} else { } else {
logger.warning(SERVICE_NAME + " > Failed to parse Pulsar message: " + msg.getMessageId()); logger.warning(SERVICE_NAME + " > Failed to parse Pulsar message: " + msg.getMessageId());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment