Interface Mqtt5ConnAckRestrictions
Restrictions for the client set by the server in an
MQTT 5 ConnAck message.
These restrictions are used in conjunction with the Mqtt5ConnectRestrictions to form the Mqtt5ClientConnectionConfig.RestrictionsForClient.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default maximum packet size the server accepts from the client which indicates that the packet size is not limited beyond the restrictions of the encoding.The default maximum QoS the server accepts from the client.static final intThe default maximum amount of not acknowledged publishes with QoS 1 or 2 the server accepts concurrently.static final booleanThe default for whether the server accepts retained messages.static final booleanThe default for whether the server accepts shared subscriptions.static final booleanThe default for whether the server accepts subscription identifiers.static final intThe default maximum amount of topic aliases the server accepts from the client.static final booleanThe default for whether the server accepts wildcard subscriptions. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintbooleanbooleanboolean
-
Field Details
-
DEFAULT_RECEIVE_MAXIMUM
static final int DEFAULT_RECEIVE_MAXIMUMThe default maximum amount of not acknowledged publishes with QoS 1 or 2 the server accepts concurrently.- See Also:
-
DEFAULT_MAXIMUM_PACKET_SIZE_NO_LIMIT
static final int DEFAULT_MAXIMUM_PACKET_SIZE_NO_LIMITThe default maximum packet size the server accepts from the client which indicates that the packet size is not limited beyond the restrictions of the encoding.- See Also:
-
DEFAULT_TOPIC_ALIAS_MAXIMUM
static final int DEFAULT_TOPIC_ALIAS_MAXIMUMThe default maximum amount of topic aliases the server accepts from the client.- See Also:
-
DEFAULT_MAXIMUM_QOS
The default maximum QoS the server accepts from the client. -
DEFAULT_RETAIN_AVAILABLE
static final boolean DEFAULT_RETAIN_AVAILABLEThe default for whether the server accepts retained messages.- See Also:
-
DEFAULT_WILDCARD_SUBSCRIPTION_AVAILABLE
static final boolean DEFAULT_WILDCARD_SUBSCRIPTION_AVAILABLEThe default for whether the server accepts wildcard subscriptions.- See Also:
-
DEFAULT_SHARED_SUBSCRIPTION_AVAILABLE
static final boolean DEFAULT_SHARED_SUBSCRIPTION_AVAILABLEThe default for whether the server accepts shared subscriptions.- See Also:
-
DEFAULT_SUBSCRIPTION_IDENTIFIERS_AVAILABLE
static final boolean DEFAULT_SUBSCRIPTION_IDENTIFIERS_AVAILABLEThe default for whether the server accepts subscription identifiers.- See Also:
-
-
Method Details
-
getReceiveMaximum
int getReceiveMaximum()- Returns:
- the maximum amount of not acknowledged publishes with QoS 1 or 2 the server accepts concurrently. The
default is
DEFAULT_RECEIVE_MAXIMUM.
-
getMaximumPacketSize
int getMaximumPacketSize()- Returns:
- the maximum packet size the server accepts from the client. The default is
DEFAULT_MAXIMUM_PACKET_SIZE_NO_LIMIT.
-
getTopicAliasMaximum
int getTopicAliasMaximum()- Returns:
- the maximum amount of topic aliases the server accepts from the client. The default is
DEFAULT_TOPIC_ALIAS_MAXIMUM.
-
getMaximumQos
- Returns:
- the maximum QoS the server accepts from the client. The default is
DEFAULT_MAXIMUM_QOS.
-
isRetainAvailable
boolean isRetainAvailable()- Returns:
- whether the server accepts retained messages. The default is
DEFAULT_RETAIN_AVAILABLE.
-
isWildcardSubscriptionAvailable
boolean isWildcardSubscriptionAvailable()- Returns:
- whether the server accepts wildcard subscriptions. The default is
DEFAULT_WILDCARD_SUBSCRIPTION_AVAILABLE.
-
areSubscriptionIdentifiersAvailable
boolean areSubscriptionIdentifiersAvailable()- Returns:
- whether the server accepts subscription identifiers. The default is
DEFAULT_SUBSCRIPTION_IDENTIFIERS_AVAILABLE.
-