-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
Search before asking
- I have searched in the issues and found no similar issues.
What would you like to be improved?
We use the SEND_CHECK_INTERVAL to check the blocks whether finished. Although we send small data, we will still use 500ms to wait.
How should we improve?
We add the event FinishBlockEvent. We post the event to a blocking queue. When we finish sending data, we will create a new event and add the event to the queue. We will poll the FinishBlockEvent from the queue instead of waiting for 500ms.
like
queue = new BlockingQueue();
Event event = queue.poll(500, TimeUnit.MS);
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Metadata
Metadata
Assignees
Labels
No labels