Enum TopicPolicy
- All Implemented Interfaces:
Serializable, Comparable<TopicPolicy>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMessages can be sent to both named topics and the empty topic in this channel.Messages can be sent to named topics in this channel, but the empty topic is disabled.Messages can be sent to the empty topic in this channel, but named topics are disabledMessages can be sent to named topics in this channel, and the organization-level realm_topics_policy is used for whether messages can be sent to the empty topic in this channel -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicPolicyfromString(String policy) toString()static TopicPolicyReturns the enum constant of this type with the specified name.static TopicPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALLOW_EMPTY_TOPIC
Messages can be sent to both named topics and the empty topic in this channel. -
DISABLE_EMPTY_TOPIC
Messages can be sent to named topics in this channel, but the empty topic is disabled. -
EMPTY_TOPIC_ONLY
Messages can be sent to the empty topic in this channel, but named topics are disabled -
INHERIT
Messages can be sent to named topics in this channel, and the organization-level realm_topics_policy is used for whether messages can be sent to the empty topic in this channel
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toString
- Overrides:
toStringin classEnum<TopicPolicy>
-
fromString
-