public enum Status extends Enum<Status>
Syntax
unit.
See the main readme for more information on the idea of phases. Basically, there are several phases in which a particular
Syntax
unit may be broadcasted. The refine phase, the process phase and the validate phase. Each unit must only be
emitted at most once per phase.
Enum Constant and Description |
---|
EMITTING
The unit is currently being emitted
|
NEVER_EMIT
The unit should not be emitted any further
|
PARSED
The unit has completed the
SubscriptionPhase.REFINE phase |
PROCESSED
The unit has completed the
SubscriptionPhase.PROCESS phase |
RAW
The unit is unrefined and unbroadcasted
|
VALIDATED
The unit has completed the
SubscriptionPhase.VALIDATE phase |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
shouldBroadcastForPhase(SubscriptionPhase phase)
Gets whether a
Syntax unit with this status should be broadcasted. |
static Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status RAW
public static final Status EMITTING
public static final Status PARSED
SubscriptionPhase.REFINE
phasepublic static final Status PROCESSED
SubscriptionPhase.PROCESS
phasepublic static final Status VALIDATED
SubscriptionPhase.VALIDATE
phasepublic static final Status NEVER_EMIT
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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 abstract boolean shouldBroadcastForPhase(SubscriptionPhase phase)
Syntax
unit with this status should be broadcasted.phase
- The SubscriptionPhase
to check.Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.