Skip to content

Instantly share code, notes, and snippets.

@michaeldejong
Created October 12, 2019 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeldejong/750c5fe684ab3f594ccc09bdcb252bba to your computer and use it in GitHub Desktop.
Save michaeldejong/750c5fe684ab3f594ccc09bdcb252bba to your computer and use it in GitHub Desktop.
Getting notified of specific settings being updated with Consultant
Consultant consultant = Consultant.builder()
.identifyAs("billing")
.onSettingUpdate("pipedrive.apikey", (key, oldValue, newValue) -> {
log.warn("Pipedrive API key was changed to: " + newValue);
})
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment