org.bushe.swing.event
Interface PublicationStatusTracker

All Known Implementing Classes:
AbstractEventServiceEvent, ObjectEvent, SubscriberTimingEvent

public interface PublicationStatusTracker

An optional interface that can be implemented by Events objects or topic Payloads to enable the events' status to be stamped on the event by an event service.

EventService implementations must call setEventStatus(status) on event objects and payloads that implement this interface.


Method Summary
 PublicationStatus getPublicationStatus()
          Implementations of this method must be made thread safe.
 void setPublicationStatus(PublicationStatus status)
          Implementations of this method must be made thread safe.
 

Method Detail

getPublicationStatus

PublicationStatus getPublicationStatus()
Implementations of this method must be made thread safe.

Returns:
last value set by setPublicationStatus(), or PublicationStatus.Unpublished if setPublicationStatus was never called.

setPublicationStatus

void setPublicationStatus(PublicationStatus status)
Implementations of this method must be made thread safe.

Parameters:
status - the status of the event during it's current publication


Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.