Package com.hivemq.client.mqtt.mqtt5
Interface Mqtt5ClientConnectionConfig.RestrictionsForServer
- Enclosing interface:
Mqtt5ClientConnectionConfig
Restrictions for messages a
Mqtt5Client receives.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum packet size the client accepts from the server.intReturns the maximum amount of not acknowledged publishes with QoS 1 or 2 the client accepts from the server concurrently.intReturns the maximum amount of topic aliases the client accepts from the server.booleanReturns whether the client requested problem information from the server.booleanReturns whether the client requested response information from the server.
-
Method Details
-
getReceiveMaximum
int getReceiveMaximum()Returns the maximum amount of not acknowledged publishes with QoS 1 or 2 the client accepts from the server concurrently.The value is determined by
Mqtt5ConnectRestrictions#getReceiveMaximum().- Returns:
- the maximum amount of not acknowledged publishes with QoS 1 or 2 the client accepts from the server concurrently.
-
getMaximumPacketSize
int getMaximumPacketSize()Returns the maximum packet size the client accepts from the server.The value is determined by
Mqtt5ConnectRestrictions#getMaximumPacketSize().- Returns:
- the maximum packet size the client accepts from the server.
-
getTopicAliasMaximum
int getTopicAliasMaximum()Returns the maximum amount of topic aliases the client accepts from the server.The value is determined by
Mqtt5ConnectRestrictions#getTopicAliasMaximum().- Returns:
- the maximum amount of topic aliases the client accepts from the server.
-
isProblemInformationRequested
boolean isProblemInformationRequested()Returns whether the client requested problem information from the server.The value is determined by
Mqtt5ConnectRestrictions#isRequestProblemInformation().- Returns:
- whether the client requested problem information from the server.
-
isResponseInformationRequested
boolean isResponseInformationRequested()Returns whether the client requested response information from the server.The value is determined by
Mqtt5ConnectRestrictions#isRequestResponseInformation().- Returns:
- whether the client requested response information from the server.
-