Interface InWorkerServiceScriptUpdate

All Known Implementing Classes:
LastByDisScriptUpdate
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface InWorkerServiceScriptUpdate
Interface to allow an in-worker service with a script to update an empty script when first created. Implementing classes must include a no-argument constructor, even if it does nothing.
  • Method Summary

    Modifier and Type Method Description
    String getNewScriptText​(String scriptLanguage)
    Given the script language, return the new script.
  • Method Details

    • getNewScriptText

      @Nullable String getNewScriptText​(@Nullable String scriptLanguage)
      Given the script language, return the new script.
      Parameters:
      scriptLanguage - the script language
      Returns:
      the script to be used for a new query, or null if no starting script is needed