-
Notifications
You must be signed in to change notification settings - Fork 7
process async with polling, no message limit #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…-UID2-6146-update-traffic-calculator-to-hardcoded-baseline
…-UID2-6146-update-traffic-calculator-to-hardcoded-baseline
…-UID2-6146-update-traffic-calculator-to-hardcoded-baseline
…seline' into ian-UID2-6151-add-traffic-filter-class
| private final boolean stoppedDueToRecentMessages; | ||
|
|
||
| public DeltaProductionResult(int deltasProduced, int entriesProcessed) { | ||
| public DeltaProductionResult(int deltasProduced, int entriesProcessed, boolean stoppedDueToRecentMessages) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can we add a comment here explaining what stoppedDueToRecentMessages means? We might forget the context after a while.
| private volatile JobState state; | ||
| private volatile JsonObject result; | ||
| private volatile String errorMessage; | ||
| private volatile Instant endTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why volatile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
State is read from the event loop thread and is written from the (single possible) worker thread caused by execute blocking.
The event loop just reads the status occasionally; the worker thread can write to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
job.encode() to send the response is in the status handler, and job.complete(result) is in the blocking, worker thread code.
…-UID2-6146-update-traffic-calculator-to-hardcoded-baseline
…seline' into ian-UID2-6151-add-traffic-filter-class
…-UID2-6146-update-traffic-calculator-to-hardcoded-baseline
…seline' into ian-UID2-6151-add-traffic-filter-class
…ter-class add traffic filter class
…calculator-to-hardcoded-baseline traffic calculator with hardcoded baseline
New :
Modified: