|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PublicationStatus>
org.bushe.swing.event.PublicationStatus
public enum PublicationStatus
The status of an event as it makes its way from publication through processing by subscribers.
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |