Enum SubscribeOptions.SubscriptionType
- java.lang.Object
-
- java.lang.Enum<SubscribeOptions.SubscriptionType>
-
- rocks.xmpp.extensions.pubsub.model.SubscribeOptions.SubscriptionType
-
- All Implemented Interfaces:
Serializable
,Comparable<SubscribeOptions.SubscriptionType>
- Enclosing class:
- SubscribeOptions
public static enum SubscribeOptions.SubscriptionType extends Enum<SubscribeOptions.SubscriptionType>
The subscription type.- See Also:
- 9.1 Auto-Subscribe
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubscribeOptions.SubscriptionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SubscribeOptions.SubscriptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITEMS
public static final SubscribeOptions.SubscriptionType ITEMS
Receive notification of new items only
-
NODES
public static final SubscribeOptions.SubscriptionType NODES
Receive notification of new nodes only
-
-
Method Detail
-
values
public static SubscribeOptions.SubscriptionType[] 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 (SubscribeOptions.SubscriptionType c : SubscribeOptions.SubscriptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubscribeOptions.SubscriptionType 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
-
-