@Deprecated public enum ClientThrottlerType extends Enum<ClientThrottlerType>
ClientThrottler
.
Enum Constant and Description |
---|
BUFFER_INTERVAL
Deprecated.
The Client is throttled to a full output buffer every interval.
|
BYTES_PER_SECOND
Deprecated.
The Client is throttled on a 'bytes per second' basis.
|
MESSAGE_INTERVAL
Deprecated.
The Client is throttled on a 'Message Interval' basis.
|
MESSAGES_PER_SECOND
Deprecated.
The Client is throttled on a 'messages per second' basis.
|
Modifier and Type | Method and Description |
---|---|
static ClientThrottlerType |
fromString(String symbol)
Deprecated.
Returns type enum from string representation.
|
static ClientThrottlerType |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ClientThrottlerType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientThrottlerType MESSAGES_PER_SECOND
This means that the Throttler will restrict the maximum number of messages per second that can be sent to the Client. The Throttler limit will indicate the number of messages per second.
public static final ClientThrottlerType BYTES_PER_SECOND
This means that the Throttler will restrict the maximum number of bytes per second that can be sent to the Client. The Throttler limit will indicate the number of bytes per second.
public static final ClientThrottlerType MESSAGE_INTERVAL
This means that messages are sent out with a fixed interval between them. e.g. one message every 5 seconds. The Throttler limit indicates the period between messages measured in milliseconds (so 5000 for one message every 5 seconds).
This type of throttling can lead to a significant backlog of messages on the Client queue therefore it is recommended that it is only used along with conflation in order to minimise the queue size.
public static final ClientThrottlerType BUFFER_INTERVAL
This means that the number of bytes that fill a full buffer are output every period (specified in milliseconds). The number of bytes is therefore determined by the size of the output buffer specified by the Client connector. The Throttler limit indicates the period between messages measured in milliseconds (so 5000 for one message every 5 seconds).
Note that output buffers are filled from the client queue until no more messages can be added in which case, depending upon message sizes the average rate per second would be less than the actual buffer size. When buffers are not filled then the throttler may allow several sends in the specified interval until more than the buffer size has been sent, in which case more than the buffer size could be sent in a single interval.
public static ClientThrottlerType[] values()
for (ClientThrottlerType c : ClientThrottlerType.values()) System.out.println(c);
public static ClientThrottlerType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ClientThrottlerType fromString(String symbol)
symbol
- type name in either lower or upper caseCopyright © 2020 Push Technology Ltd. All Rights Reserved.