Skip to content

[ISSUE #1105] Support Timed Delivery#1104

Closed
ahuazhu wants to merge 4 commits intoapache:developfrom
ahuazhu:delay_queue_2
Closed

[ISSUE #1105] Support Timed Delivery#1104
ahuazhu wants to merge 4 commits intoapache:developfrom
ahuazhu:delay_queue_2

Conversation

@ahuazhu
Copy link
Copy Markdown
Contributor

@ahuazhu ahuazhu commented Mar 21, 2019

What is the purpose of the change

add the feature of timed delivery. ISSUE #1105

Brief changelog

Add a simple implementation using the delay queue. The producer set the delivery time via adding a user property PROPERTY_DELIVERY_TIME_MILLIS , The CommitLog check the current time and send it to the appropriate SCHEDULE_QUEUE or a normal ConsumerQueue.

Verifying this change

@ahuazhu ahuazhu changed the title Delay queue 2 Support Timed Delivery Mar 21, 2019
@ahuazhu ahuazhu changed the title Support Timed Delivery [ISSUE #1105] Support Timed Delivery Mar 21, 2019
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 21, 2019

Coverage Status

Coverage increased (+0.06%) to 50.407% when pulling c768afe on ahuazhu:delay_queue_2 into bf2a7e5 on apache:develop.

@ahuazhu ahuazhu changed the base branch from master to develop March 21, 2019 08:58
@vesense vesense requested a review from zhouxinyu June 17, 2019 15:48
/*
* Create a message instance, specifying topic, tag and message body.
*/
long delay = r.nextInt(10_000_000);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long delay = r.nextInt(10000000); ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants