public enum PublicationStatus extends Enum<PublicationStatus>
EventServices are required to stamp any event object or payload that implements the EventStatusTracker with the corresponding EventStatus as the event object is processed. The EventService is not required to set the Unpublished state.
Enum Constant and Description |
---|
Completed
Called when all subscribers have finished handling the event publication.
|
Initiated
Set directly after publication on an EventService.
|
Publishing
Set while the event is sent to it's subscribers.
|
Queued
State set after veto test is passed before the event is send to any subscribers.
|
Unpublished
Recommended default.
|
Vetoed
End status for events that are vetoed and never sent to subscribers.
|
Modifier and Type | Method and Description |
---|---|
static PublicationStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicationStatus Unpublished
public static final PublicationStatus Initiated
public static final PublicationStatus Vetoed
public static final PublicationStatus Queued
public static final PublicationStatus Publishing
public static final PublicationStatus Completed
public static PublicationStatus[] values()
for (PublicationStatus c : PublicationStatus.values()) System.out.println(c);
public static PublicationStatus 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 © 2013 Bushe Enterprises, Inc.. All Rights Reserved.