Enum TopicPermission.MqttActivity
- java.lang.Object
-
- java.lang.Enum<TopicPermission.MqttActivity>
-
- com.hivemq.extension.sdk.api.auth.parameter.TopicPermission.MqttActivity
-
- All Implemented Interfaces:
Serializable
,Comparable<TopicPermission.MqttActivity>
- Enclosing interface:
- TopicPermission
public static enum TopicPermission.MqttActivity extends Enum<TopicPermission.MqttActivity>
The activity the topic permission is applied to.- Since:
- 4.0.0, CE 2019.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopicPermission.MqttActivity
valueOf(String name)
Returns the enum constant of this type with the specified name.static TopicPermission.MqttActivity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLISH
public static final TopicPermission.MqttActivity PUBLISH
Only applied for PUBLISHes.- Since:
- 4.0.0, CE 2019.1
-
SUBSCRIBE
public static final TopicPermission.MqttActivity SUBSCRIBE
Only applied for Subscriptions.- Since:
- 4.0.0, CE 2019.1
-
ALL
public static final TopicPermission.MqttActivity ALL
Applied to PUBLISHes and Subscriptions.- Since:
- 4.0.0, CE 2019.1
-
-
Method Detail
-
values
public static TopicPermission.MqttActivity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TopicPermission.MqttActivity c : TopicPermission.MqttActivity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TopicPermission.MqttActivity valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-