public final class ThrottlingMethods extends Object
Modifier and Type | Method and Description |
---|---|
static void |
deleteThrottlingRule(String name)
Deletes the Throttling Rule with a given name.
|
static void |
disableThrottlingRule(String name)
Disables the Throttling Rule with a given name.
|
static void |
enableThrottlingRule(String name)
Enables the Throttling Rule with a given name.
|
static io.toro.gloop.object.property.GloopModel |
getThrottlingRule(String name)
Gets the Throttling Rule with a given name.
|
static io.toro.gloop.object.property.GloopModel |
getThrottlingRules()
Gets the list of all the Throttling Rules.
|
static io.toro.gloop.object.property.GloopModel |
getThrottlingRules(boolean enabled)
Gets the list of all the Throttling Rules.
|
static io.toro.gloop.object.property.GloopModel |
getThrottlingRules(int page,
int size,
Boolean enabled)
Gets the list of matching Throttling Rules.
|
static void |
saveThrottlingRule(io.toro.gloop.object.property.GloopModel rule)
Saves the given Throttling Rule.
|
@GloopObjectParameter(value="throttlingRuleMetadata{\nthrottlingRuleMetadata#io.toro.martini.throttling.ThrottlingRuleMetadata{\n}\n}") public static io.toro.gloop.object.property.GloopModel getThrottlingRule(@GloopParameter(allowNull=false) String name)
name
- the Throttling Rule's name@GloopObjectParameter(value="throttlingRulesMetadata{\n throttlingRulesMetadata#io.toro.martini.throttling.ThrottlingRuleMetadata[]{\n }\n}") public static io.toro.gloop.object.property.GloopModel getThrottlingRules()
@GloopObjectParameter(value="throttlingRulesMetadata{\n throttlingRulesMetadata#io.toro.martini.throttling.ThrottlingRuleMetadata[]{\n }\n}") public static io.toro.gloop.object.property.GloopModel getThrottlingRules(boolean enabled)
enabled
- if true then it will get all enabled throttling rules only@GloopObjectParameter(value="throttlingRulesMetadata{\n throttlingRulesMetadata#io.toro.martini.throttling.ThrottlingRuleMetadata[]{\n }\n}") public static io.toro.gloop.object.property.GloopModel getThrottlingRules(@GloopParameter(defaultValue="1") int page, @GloopParameter(defaultValue="25") int size, Boolean enabled)
page
- the starting pagesize
- the maximum number of Throttling Rules per pageenabled
- if set to null it will attempt to
get all rules regardless whether it's enabled or disabled.
If set to true then all enabled rules are returnedpublic static void enableThrottlingRule(@GloopParameter(allowNull=false) String name)
name
- the name of the Throttling Rule enablepublic static void disableThrottlingRule(@GloopParameter(allowNull=false) String name)
name
- the name of the Throttling Rule to disablepublic static void saveThrottlingRule(@GloopObjectParameter(value="throttlingRuleMetadata#io.toro.martini.throttling.ThrottlingRuleMetadata{\n}") @GloopParameter(allowNull=false) io.toro.gloop.object.property.GloopModel rule)
rule
- the Throttling Rule to savepublic static void deleteThrottlingRule(@GloopParameter(allowNull=false) String name)
name
- the name of the Throttling Rule to deleteCopyright © 2019. All rights reserved.