Package com.caplin.server
Enum Class ThrottleCommand
- All Implemented Interfaces:
Serializable
,Comparable<ThrottleCommand>
,Constable
Defines the available Throttle Commands.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRestore the throttle level to the configured default value.Decrease the throttle (this will result in more updates being sent to the client)Set the throttle level to the maximum.Reduce the throttle level to the minimum.Restore the throttle level to the level that was applied prior to the stop command being issued.Stop any updates that could be throttled from being sent to client.Increase the throttle (this will result in fewer updates being sent to the client). -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static ThrottleCommand
Returns the enum constant of this class with the specified name.static ThrottleCommand[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UP
Increase the throttle (this will result in fewer updates being sent to the client). -
DOWN
Decrease the throttle (this will result in more updates being sent to the client) -
MIN
Reduce the throttle level to the minimum. -
MAX
Set the throttle level to the maximum. -
STOP
Stop any updates that could be throttled from being sent to client. -
START
Restore the throttle level to the level that was applied prior to the stop command being issued. -
DEFAULT
Restore the throttle level to the configured default value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<ThrottleCommand>
-