Class Decision

java.lang.Object
org.patternfly.component.typeahead.Decision

public class Decision extends Object
The outcome of a RefreshStrategy evaluation. Tells the typeahead controller what to do with the current input value:
  • refresh() — re-query the server immediately
  • debounce(int) — re-query the server after a debounce timeout
  • filter() — filter existing items locally, no server call
  • keep() — do nothing, keep the current menu state as-is
  • Method Details

    • refresh

      public static Decision refresh()
      Re-query the server immediately.
    • debounce

      public static Decision debounce(int ms)
      Re-query the server after the given debounce timeout.
    • filter

      public static Decision filter()
      Filter existing items locally; no server call.
    • keep

      public static Decision keep()
      Do nothing; keep the current menu state as-is.
    • action

      public Decision.Action action()
      Returns the action to take.
    • debounceMs

      public int debounceMs()
      Returns the debounce timeout in milliseconds. Only meaningful when action is Decision.Action.DEBOUNCE.