public enum RestrictionType extends Enum<RestrictionType>
| Enum Constant and Description |
|---|
CLIENT_SESSION_TTL
The time to live of the session of this client.
|
DISCARD_STRATEGY
The strategy to apply when messages are dropped because the maximum size of the offline queue is exceeded.
|
INFLIGHT_QUEUE_SIZE
The maximum size of the inflight message queue for this client.
|
MAX_INCOMING_BYTES
The throttling for receiving messages from the client.
|
MAX_OUTGOING_BYTES_SEC
The throttling for sending messages out to the client.
|
MAX_PUBLISH_MESSAGE_SIZE
The maximum size of a message the user can send.
|
MAX_QUEUED_MESSAGES
The maximum size of the offline message queue for this client.
|
WRITE_BUFFER_HIGH_THRESHOLD
The high fill state of the write buffer for this client, measured in bytes.
|
WRITE_BUFFER_LOW_THRESHOLD
The low fill state of the write buffer for this client, measured in bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static RestrictionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestrictionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictionType MAX_PUBLISH_MESSAGE_SIZE
public static final RestrictionType MAX_OUTGOING_BYTES_SEC
public static final RestrictionType MAX_INCOMING_BYTES
public static final RestrictionType WRITE_BUFFER_HIGH_THRESHOLD
WRITE_BUFFER_LOW_THRESHOLD must be set as well and the Restriction value for this must be equal or greater than the value for WRITE_BUFFER_LOW_THRESHOLD.public static final RestrictionType WRITE_BUFFER_LOW_THRESHOLD
WRITE_BUFFER_HIGH_THRESHOLD, buffering of writes will resume once it drops below this. If this restriction is set WRITE_BUFFER_HIGH_THRESHOLD must be set as well and the Restriction value for this must be greater than zero.public static final RestrictionType MAX_QUEUED_MESSAGES
public static final RestrictionType DISCARD_STRATEGY
QueuedMessageStrategy as values.public static final RestrictionType CLIENT_SESSION_TTL
public static final RestrictionType INFLIGHT_QUEUE_SIZE
public static RestrictionType[] values()
for (RestrictionType c : RestrictionType.values()) System.out.println(c);
public static RestrictionType 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 nullCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.