Skip to content

Instantly share code, notes, and snippets.

@xstefank
Created April 22, 2020 06:33
Show Gist options
  • Save xstefank/ecef4881f49de296288b7a6d239ea766 to your computer and use it in GitHub Desktop.
Save xstefank/ecef4881f49de296288b7a6d239ea766 to your computer and use it in GitHub Desktop.
// This may be required but it won't compile without adding additional parameter to one of the methods
public SmallRyeHealth getLiveness() {
return getHealth(livenessChecks);
}
public ExtendedSmallRyeHealth getLiveness() {
return null;
}
// or we can do something like this:
public SmallRyeHealth getMPLiveness() {
return getHealth(livenessChecks);
}
public ExtendedSmallRyeHealth getSRLiveness() {
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment