public interface ThrottleSupport
isAllowed(org.adroitlogic.ultraesb.api.Message)
method
to provide the throttling functionality.Modifier and Type | Method and Description |
---|---|
void |
addOrUpdateRule(String key,
String rule)
Adds a rule to the existing throttle or update if it is already existing
|
boolean |
isAllowed(Message message)
Implementer should implement the throttling logic within this.
|
boolean |
isAllowed(String key,
Message message)
Throttling method implementation which takes in a category/key for evaluation - such as username, group, IP etc.
|
boolean isAllowed(Message message)
true
or if the message fails
to satisfy the throttle logic false
should be returned.message
- the current message to be used for validationboolean isAllowed(String key, Message message)
key
- the category / key for the requestmessage
- message to throttleCopyright © 2010–2016 AdroitLogic. All rights reserved.