
com.hivemq.extension.sdk.api.packets.subscribe.SubackReasonCode Maven / Gradle / Ivy
Show all versions of hivemq-extension-sdk Show documentation
/*
* Copyright 2018-present HiveMQ GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hivemq.extension.sdk.api.packets.subscribe;
/**
* The SUBACK reason codes for MQTT 5.
*
* MQTT 3.1 and MQTT 3.1.1 supports only:
*
* - {@link #GRANTED_QOS_0}
*
- {@link #GRANTED_QOS_1}
*
- {@link #GRANTED_QOS_2}
*
- {@link #UNSPECIFIED_ERROR} (in the MQTT 3 specification known as FAILURE)
*
*
* @author Christoph Schäbel
* @since 4.0.0, CE 2019.1
*/
public enum SubackReasonCode {
/**
* This is a success code.
*
* @since 4.0.0, CE 2019.1
*/
GRANTED_QOS_0,
/**
* This is a success code.
*
* @since 4.0.0, CE 2019.1
*/
GRANTED_QOS_1,
/**
* This is a success code.
*
* @since 4.0.0, CE 2019.1
*/
GRANTED_QOS_2,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
UNSPECIFIED_ERROR,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
IMPLEMENTATION_SPECIFIC_ERROR,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
NOT_AUTHORIZED,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
TOPIC_FILTER_INVALID,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
PACKET_IDENTIFIER_IN_USE,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
QUOTA_EXCEEDED,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
SHARED_SUBSCRIPTION_NOT_SUPPORTED,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED,
/**
* This is an unsuccessful code.
*
* For an MQTT 3 SUBACK this translates to the return code FAILURE.
*
* @since 4.0.0, CE 2019.1
*/
WILDCARD_SUBSCRIPTION_NOT_SUPPORTED
}