-
Notifications
You must be signed in to change notification settings - Fork 467
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
Introducing callback for DynamoDB lease table #413
Conversation
* Introducing TableCreatorCallback for DynamoDB lease management * Introducing DoesNothingTableCreatorCallback * Intoducing TableCreatorCallback config in LeaseManagementConfig, with DoesNothingTableCreatorCallback as the default
* Renaming DoesNothingTableCreatorCallback to NoOpTableCreatorCallback * Making performPostTableCreation method package private * Removing newly added method to LeaseRefresher interface
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.
Looks good, some minor comments.
/** | ||
* Callback interface for interacting with the DynamoDB lease table post creation. | ||
*/ | ||
public interface TableCreatorCallback { |
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.
I would annotate this with @FunctionalInterface
if you intend it to be used with a lambda.
/** | ||
* This implementation of the TableCreatorCallback does nothing. | ||
*/ | ||
public class NoOpTableCreatorCallback implements TableCreatorCallback { |
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.
I would probably make this a singleton on the TableCreatorCallback
interface instead of its own class.
Issue #, if available:
N/A
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.