You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have confirmed that this should be classified as an enhancement rather than a bug/feature.
Summary
public Message request(final Message msg, long timeout) Internal logic
Use countDownLatch to implement synchronization logic, but the thread is forced to wake up only after a timeout, and to wait until the timeout returns after a successful response,Therefore, after a successful response, the countDown() function should be called to wake up the thread to return, and do not do ineffective sleep
Motivation
Avoid unnecessary waiting when a response is successfully returned
Describe the Solution You'd Like
after a successful response, the countDown() function should be called to wake up the thread to return, and do not do ineffective sleep
Describe Alternatives You've Considered
null
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Before Creating the Enhancement Request
Summary
public Message request(final Message msg, long timeout) Internal logic
Use countDownLatch to implement synchronization logic, but the thread is forced to wake up only after a timeout, and to wait until the timeout returns after a successful response,Therefore, after a successful response, the countDown() function should be called to wake up the thread to return, and do not do ineffective sleep
Motivation
Avoid unnecessary waiting when a response is successfully returned
Describe the Solution You'd Like
after a successful response, the countDown() function should be called to wake up the thread to return, and do not do ineffective sleep
Describe Alternatives You've Considered
null
Additional Context
No response
The text was updated successfully, but these errors were encountered: