Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.java
/
microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a1177225
authored
Feb 26, 2019
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add ThreadPoolExecutor
parent
0173cabd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/microservice/services/IPubSubServicePulsarImpl.java
src/main/java/microservice/services/IPubSubServicePulsarImpl.java
View file @
a1177225
...
@@ -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
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment