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

refactor!: replace Closeable by explicit Stoppable interface #633

Merged
merged 3 commits into from
Oct 28, 2021

Conversation

metacosm
Copy link
Collaborator

This ensures that stoppable classes can also be started if needed.
Fixes #629


import io.javaoperatorsdk.operator.OperatorException;

public interface Stoppable {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe have a name that describes that there is also Start, like LifecycleHandler or sych.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, was wondering what a good name would be :) How about LifecycleAware?

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.

None yet

2 participants