Skip to content

Instantly share code, notes, and snippets.

@jongyoul
Created September 29, 2016 07:52
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 jongyoul/6bd5fd4e0bc1cfa1ca9e4f8df468712f to your computer and use it in GitHub Desktop.
Save jongyoul/6bd5fd4e0bc1cfa1ca9e4f8df468712f to your computer and use it in GitHub Desktop.
private String getInterpreterInstanceKey(String noteId, InterpreterSetting setting) {
if (setting.getOption().isExistingProcess()) {
return Constants.EXISTING_PROCESS;
} else if (setting.getOption().isPerNoteSession() || setting.getOption().isPerNoteProcess()) {
return noteId;
} else {
return SHARED_SESSION;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment