Class SimpleThrottlingManager

java.lang.Object
org.apache.cxf.throttling.ThrottleResponse
org.apache.cxf.throttling.SimpleThrottlingManager
All Implemented Interfaces:
ThrottlingManager

public class SimpleThrottlingManager extends ThrottleResponse implements ThrottlingManager
Suspends or aborts the requests if the threshold has been reached
  • Constructor Details

    • SimpleThrottlingManager

      public SimpleThrottlingManager()
  • Method Details

    • getDecisionPhases

      public List<String> getDecisionPhases()
      Description copied from interface: ThrottlingManager
      Get the list of phases where this manager will expect to have to make throttling decisions. For example: using BasicAuth or other protocol based header, it can be a very early in the chain, but for WS-Security based authentication, it would be later.
      Specified by:
      getDecisionPhases in interface ThrottlingManager
      Returns:
    • getThrottleResponse

      public ThrottleResponse getThrottleResponse(String phase, Message m)
      Description copied from interface: ThrottlingManager
      Use information in the message to determine what throttling measures should be taken
      Specified by:
      getThrottleResponse in interface ThrottlingManager
      Returns:
    • getThreshold

      public int getThreshold()
    • setThreshold

      public void setThreshold(int threshold)