Package com.caplin.streamlink
Enum Class ThrottleCommand
- All Implemented Interfaces:
Serializable
,Comparable<ThrottleCommand>
,Constable
Enumeration that defines the available throttle levels and throttle commands.
A ThrottleCommand is passed as a parameter to the throttleSubject()
and throttleEverything()
methods of StreamLink
.
For an explanation of throttling, refer the Throttling section of the document StreamLink Overview.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSet the throttle level to the default level.Decrease the throttle level.Set the throttle level to the maximum amount of throttling.Set the throttle level to the minimum amount of throttling.Start sending updates to the client again.Stop sending updates to the client.Increase the throttle level. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 level.
-
DOWN
Decrease the throttle level.
-
MIN
Set the throttle level to the minimum amount of throttling.
-
MAX
Set the throttle level to the maximum amount of throttling.
-
STOP
Stop sending updates to the client.
-
START
Start sending updates to the client again.
-
DEF
Set the throttle level to the default level.
-
-
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
-