@DoNotImplement public interface Mqtt5ConnectRestrictions
MQTT 5 Connect message
.
These restrictions consist of:
These are used to form the Mqtt5ClientConnectionConfig.RestrictionsForServer
These restrictions are used in conjunction with the
Mqtt5ConnAckRestrictions
to form the Mqtt5ClientConnectionConfig.RestrictionsForClient
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXIMUM_PACKET_SIZE
The default maximum packet size the client accepts from the server.
|
static int |
DEFAULT_RECEIVE_MAXIMUM
The default maximum amount of not acknowledged publishes with QoS 1 or 2 the client accepts from the server
concurrently.
|
static boolean |
DEFAULT_REQUEST_PROBLEM_INFORMATION
Default whether the client accepts problem information from the server.
|
static boolean |
DEFAULT_REQUEST_RESPONSE_INFORMATION
Default whether the client requests problem information from the server.
|
static int |
DEFAULT_SEND_MAXIMUM
The default maximum amount of not acknowledged publishes with QoS 1 or 2 the client sends to the server
concurrently.
|
static int |
DEFAULT_SEND_MAXIMUM_PACKET_SIZE
The default maximum packet size the client sends to the server.
|
static int |
DEFAULT_SEND_TOPIC_ALIAS_MAXIMUM
The default maximum amount of topic aliases the client sends to the server.
|
static int |
DEFAULT_TOPIC_ALIAS_MAXIMUM
The default maximum amount of topic aliases the client accepts from the server.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull Mqtt5ConnectRestrictionsBuilder |
builder()
Creates a builder for Connect restrictions.
|
@NotNull Mqtt5ConnectRestrictionsBuilder |
extend()
Creates a builder for extending this Connect restrictions.
|
int |
getMaximumPacketSize()
Returns the maximum packet size the client accepts from the server.
|
int |
getReceiveMaximum()
Returns the maximum amount of not acknowledged publishes with QoS 1 or 2 the client accepts from the server
concurrently.
|
int |
getSendMaximum()
Returns the maximum amount of not acknowledged publishes with QoS 1 or 2 the client sends to the server
concurrently.
|
int |
getSendMaximumPacketSize()
Returns the maximum packet size the client sends to the server.
|
int |
getSendTopicAliasMaximum()
Returns the maximum amount of topic aliases the client sends to the server.
|
int |
getTopicAliasMaximum()
Returns the maximum amount of topic aliases the client accepts from the server.
|
boolean |
isRequestProblemInformation()
Returns whether the client requests problem information from the server.
|
boolean |
isRequestResponseInformation()
Returns whether the client requests response information from the server.
|
static final int DEFAULT_RECEIVE_MAXIMUM
static final int DEFAULT_SEND_MAXIMUM
static final int DEFAULT_MAXIMUM_PACKET_SIZE
static final int DEFAULT_SEND_MAXIMUM_PACKET_SIZE
static final int DEFAULT_TOPIC_ALIAS_MAXIMUM
static final int DEFAULT_SEND_TOPIC_ALIAS_MAXIMUM
static final boolean DEFAULT_REQUEST_PROBLEM_INFORMATION
static final boolean DEFAULT_REQUEST_RESPONSE_INFORMATION
@NotNull static @NotNull Mqtt5ConnectRestrictionsBuilder builder()
int getReceiveMaximum()
DEFAULT_RECEIVE_MAXIMUM
.int getSendMaximum()
DEFAULT_SEND_MAXIMUM
.
The actual amount a connected client will use is determined by the minimum of this value and MqttConnAckRestrictions#getReceiveMaximum()
.
int getMaximumPacketSize()
DEFAULT_MAXIMUM_PACKET_SIZE
.int getSendMaximumPacketSize()
DEFAULT_SEND_MAXIMUM_PACKET_SIZE
.
The actual size a connected client will use is determined by the minimum of this value and MqttConnAckRestrictions#getMaximumPacketSize()
.
int getTopicAliasMaximum()
DEFAULT_TOPIC_ALIAS_MAXIMUM
.int getSendTopicAliasMaximum()
DEFAULT_SEND_TOPIC_ALIAS_MAXIMUM
.
The actual amount a connected client will use is determined by the minimum of this value and MqttConnAckRestrictions#getTopicAliasMaximum()
.
boolean isRequestProblemInformation()
DEFAULT_REQUEST_PROBLEM_INFORMATION
.boolean isRequestResponseInformation()
DEFAULT_REQUEST_RESPONSE_INFORMATION
.@NotNull @NotNull Mqtt5ConnectRestrictionsBuilder extend()