public enum ThrottleCommand extends java.lang.Enum<ThrottleCommand>
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.
Enum Constant and Description |
---|
DEF
Set the throttle level to the default level.
|
DOWN
Decrease the throttle level.
|
MAX
Set the throttle level to the maximum amount of throttling.
|
MIN
Set the throttle level to the minimum amount of throttling.
|
START
Start sending updates to the client again.
|
STOP
Stop sending updates to the client.
|
UP
Increase the throttle level.
|
Modifier and Type | Method and Description |
---|---|
static ThrottleCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThrottleCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThrottleCommand UP
Increase the throttle level.
public static final ThrottleCommand DOWN
Decrease the throttle level.
public static final ThrottleCommand MIN
Set the throttle level to the minimum amount of throttling.
public static final ThrottleCommand MAX
Set the throttle level to the maximum amount of throttling.
public static final ThrottleCommand STOP
Stop sending updates to the client.
public static final ThrottleCommand START
Start sending updates to the client again.
public static final ThrottleCommand DEF
Set the throttle level to the default level.
public static ThrottleCommand[] values()
for (ThrottleCommand c : ThrottleCommand.values()) System.out.println(c);
public static ThrottleCommand valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullPlease send bug reports and comments to Caplin support