-
Notifications
You must be signed in to change notification settings - Fork 65
Feature/lock keeper daemon #404
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
| return lockAcquiredForMillis - lockRefreshMarginMillis; | ||
| } | ||
|
|
||
| // return lockExpiresAt != null |
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.
Comments should be removed
| lockQuitTryingAfterMillis, | ||
| lockTryFrequencyMillis, | ||
| lockRefreshMarginMillis); | ||
| lockManager.initialize(); |
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 do we need initialize method now? I think we can just include its code inside DefaultLockManager constructor, and remove "initialize" method, as we only are initializing "lockDaemon" and "shouldStopTryingAt" value.
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.
initialize starts the htread. I don't like to have that in a constructor., even less if we pass the this instance to it
No description provided.