Interface SnSuggestListener


public interface SnSuggestListener
Listener for suggest operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Handles a notification that the suggest operation has just completed.
    default void
    Handles a notification that the suggest operation failed (this may also be due to listeners failing).
    default void
    Handles a notification that the suggest operation is about to begin execution.
  • Method Details

    • beforeSuggest

      default void beforeSuggest(SnSuggestContext context) throws SnSuggestException
      Handles a notification that the suggest operation is about to begin execution.
      Parameters:
      context - - the suggest context
      Throws:
      SnSuggestException - if an error occurs
    • afterSuggest

      default void afterSuggest(SnSuggestContext context) throws SnSuggestException
      Handles a notification that the suggest operation has just completed.
      Parameters:
      context - - the suggest context
      Throws:
      SnSuggestException - if an error occurs
    • afterSuggestError

      default void afterSuggestError(SnSuggestContext context) throws SnSuggestException
      Handles a notification that the suggest operation failed (this may also be due to listeners failing).
      Parameters:
      context - - the suggest context
      Throws:
      SnSuggestException - if an error occurs