Skip to content
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

Minor enhancement on RedisRegistrationStore #402

Merged
merged 4 commits into from
Nov 10, 2017

Conversation

sbernard31
Copy link
Contributor

@sbernard31 sbernard31 commented Oct 9, 2017

Fix some potential race condition issue an add kind of clemency for expiration.

/** Default time in seconds between 2 cleaning tasks (used to remove expired registration). */
public static final long DEFAULT_CLEAN_PERIOD = 60;
/** Defaut Extra time for registration lifetime in seconds */
public static final long DEFAULT_CLEMENCY = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

what do you think of renaming "clemency" to "grace period"? again a naming question ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will change it

return isAlive(0);
}

public boolean isAlive(long clemencyInSec) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this method needs a proper javadoc, in order to understand the meaning of this grace/clemency period.
And the default isAlive() as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can try

@sbernard31 sbernard31 merged commit 3b8e7a9 into master Nov 10, 2017
@sbernard31 sbernard31 deleted the redisregstore_enhancement branch November 10, 2017 16:33
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.

2 participants