Class SearchErrorPollingCondition

java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.SearchErrorPollingCondition
All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

public class SearchErrorPollingCondition extends Object implements com.atlassian.plugin.web.Condition
Condition that checks if search error polling and rendering should be enabled. Returns true if ERROR_POLLING_AND_RENDERING feature flag is on AND either LUCENE_SEARCH_LIMIT or LUCENE_SEARCH_MEMORY_CIRCUIT_BREAKER feature flags are on.
  • Constructor Details

    • SearchErrorPollingCondition

      public SearchErrorPollingCondition(FeatureManager featureManager)
  • Method Details

    • init

      public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
      Specified by:
      init in interface com.atlassian.plugin.web.Condition
      Throws:
      com.atlassian.plugin.PluginParseException
    • shouldDisplay

      public boolean shouldDisplay(Map<String,Object> context)
      Specified by:
      shouldDisplay in interface com.atlassian.plugin.web.Condition