public static enum PubSub.Context extends Enum<PubSub.Context>
Publisher
and Subscriber
returned by PubSub behave. For example,
If the Context is QUERY_SUBMISSION
:
QUERY_PROCESSING
:
Enum Constant and Description |
---|
QUERY_PROCESSING |
QUERY_SUBMISSION |
Modifier and Type | Method and Description |
---|---|
static PubSub.Context |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PubSub.Context[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PubSub.Context QUERY_SUBMISSION
public static final PubSub.Context QUERY_PROCESSING
public static PubSub.Context[] values()
for (PubSub.Context c : PubSub.Context.values()) System.out.println(c);
public static PubSub.Context 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 nullCopyright © 2021. All rights reserved.