Skip to content

Commit

Permalink
Added functionality to process reply to subs in new thread
Browse files Browse the repository at this point in the history
This is required if the service is available and is injected to the service tracker, it blocks the startup as it happens in the same thread
  • Loading branch information
amitjoy committed Nov 14, 2024
1 parent 52ff72c commit a407891
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public synchronized ReplyToSingleSubscriptionHandler addingService(
final ReplyToSubDTO sub = new ReplyToSubDTO(handler, REPLY_TO_SINGLE_SUB, reference);
subscriptions.add(sub);

processReplyToSingleSubscriptionHandler(sub);
new Thread(() -> processReplyToSingleSubscriptionHandler(sub)).start();
return handler;
}

Expand All @@ -152,7 +152,7 @@ public synchronized ReplyToSubscriptionHandler addingService(
final ReplyToSubDTO sub = new ReplyToSubDTO(handler, REPLY_TO_SUB, reference);
subscriptions.add(sub);

processReplyToSubscriptionHandler(sub);
new Thread(() -> processReplyToSubscriptionHandler(sub)).start();
return handler;
}

Expand All @@ -179,7 +179,7 @@ public synchronized ReplyToManySubscriptionHandler addingService(
final ReplyToSubDTO sub = new ReplyToSubDTO(handler, REPLY_TO_MANY_SUB, reference);
subscriptions.add(sub);

processReplyToManySubscriptionHandler(sub);
new Thread(() -> processReplyToManySubscriptionHandler(sub)).start();
return handler;
}

Expand Down

0 comments on commit a407891

Please sign in to comment.