public static enum TopicNotifyTopicHandler.NotificationLevel extends Enum<TopicNotifyTopicHandler.NotificationLevel>
Enum Constant and Description |
---|
FULL
The level of notification provides all details of the Topic and would
be the level needed in order to replicate the Topic.
|
METADATA
This level of notification is the same as
MINIMUM plus any
metadata associated with the Topic. |
MINIMUM
The minimum level of notification that can be received which will
simply notify the topic name and its type.
|
NONE
This special setting may be used to indicate that add notifications
are not required.
|
PROPERTIES
This level of notification is the same as
MINIMUM plus all
properties of the Topic. |
Modifier and Type | Method and Description |
---|---|
static TopicNotifyTopicHandler.NotificationLevel |
fromCode(String code)
Returns NotificationLevel enum from code value.
|
String |
getCode()
Returns the code representation as used in messages.
|
boolean |
hasMetadata()
Indicates whether the notification level includes metadata
|
boolean |
hasProperties()
Indicates whether the notification level includes properties.
|
static TopicNotifyTopicHandler.NotificationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TopicNotifyTopicHandler.NotificationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicNotifyTopicHandler.NotificationLevel MINIMUM
public static final TopicNotifyTopicHandler.NotificationLevel PROPERTIES
MINIMUM
plus all
properties of the Topic. See TopicProperty
and
TopicDefinition
.public static final TopicNotifyTopicHandler.NotificationLevel METADATA
MINIMUM
plus any
metadata associated with the Topic. See
TopicDefinition.getMetadata()
.public static final TopicNotifyTopicHandler.NotificationLevel FULL
This is equivalent to MINIMUM
plus PROPERTIES
plus
METADATA
.
public static final TopicNotifyTopicHandler.NotificationLevel NONE
public static TopicNotifyTopicHandler.NotificationLevel[] values()
for (TopicNotifyTopicHandler.NotificationLevel c : TopicNotifyTopicHandler.NotificationLevel.values()) System.out.println(c);
public static TopicNotifyTopicHandler.NotificationLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TopicNotifyTopicHandler.NotificationLevel fromCode(String code)
code
- level codepublic String getCode()
public boolean hasProperties()
public boolean hasMetadata()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.