public static enum TopicNotifyTopicHandler.SelectionMode extends Enum<TopicNotifyTopicHandler.SelectionMode>
Topic ranges are specified or updated using
TopicNotifyTopicHandler.select(SelectionMode, TopicSet)
.
Enum Constant and Description |
---|
ADD
This indicates that the specified set of topic names and/or selectors
should be added to any existing selection.
|
CLEAR
Specifies that all current selections should be removed.
|
REMOVE
Specifies that the specified set of topic names and/or selectors
should be removed from the current set of selections.
|
REPLACE
This indicates that the specified set of topic names and/or selectors
should replace any current selections.
|
Modifier and Type | Method and Description |
---|---|
static TopicNotifyTopicHandler.SelectionMode |
fromCode(String code)
Returns SelectionMode enum from code value.
|
String |
getCode()
Returns the code used in messages.
|
static TopicNotifyTopicHandler.SelectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TopicNotifyTopicHandler.SelectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicNotifyTopicHandler.SelectionMode ADD
public static final TopicNotifyTopicHandler.SelectionMode REPLACE
public static final TopicNotifyTopicHandler.SelectionMode REMOVE
public static final TopicNotifyTopicHandler.SelectionMode CLEAR
public static TopicNotifyTopicHandler.SelectionMode[] values()
for (TopicNotifyTopicHandler.SelectionMode c : TopicNotifyTopicHandler.SelectionMode.values()) System.out.println(c);
public static TopicNotifyTopicHandler.SelectionMode 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.SelectionMode fromCode(String code)
code
- mode codepublic String getCode()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.