public class SimpleThrottlingManager extends ThrottleResponse implements ThrottlingManager
delay, errorMessage, responseCode, responseHeaders
Constructor and Description |
---|
SimpleThrottlingManager() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDecisionPhases()
Get the list of phases where this manager will expect to have to make throttling decisions.
|
int |
getThreshold() |
ThrottleResponse |
getThrottleResponse(String phase,
Message m)
Use information in the message to determine what throttling measures should be taken
|
void |
setThreshold(int threshold) |
addResponseHeader, getDelay, getErrorMessage, getResponseCode, getResponseHeaders, setDelay, setResponseCode, setResponseCode
public List<String> getDecisionPhases()
ThrottlingManager
getDecisionPhases
in interface ThrottlingManager
public ThrottleResponse getThrottleResponse(String phase, Message m)
ThrottlingManager
getThrottleResponse
in interface ThrottlingManager
public int getThreshold()
public void setThreshold(int threshold)
Apache CXF