Package net.sf.eBus.feed.historic
Interface HistoricPublishStatusCallback
-
public interface HistoricPublishStatusCallbackAn eBus client implementingIEHistoricPublishermay choose to implement this functional interface as aprivatemethod instead of implementing thepublicIEHistoricPublisher.publishStatus(EFeedState, EHistoricPublishFeed)method. This privateHistoricPublishStateCallbackmethod is then passed toEHistoricPublishFeed.Builder.statusCallback(HistoricPublishStatusCallback).Note: this callback may only be set when building an
EHistoricPublishFeedinstance. Once built, the publisher feed status callback target may not be changed.If not overridden or replaced with a
HistoricPublishStatusCallback,IEHistoricPublisher.publishStatus(EFeedState, EHistoricPublishFeed)does nothing.- Author:
- Charles W. Rapp
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcall(EFeedState feedState, EHistoricPublishFeed feed)EHistoricPublishFeedcalls this method to inform a publisher that the notification feed state is eitherEFeedState.UPorEFeedState.DOWN.
-
-
-
Method Detail
-
call
void call(EFeedState feedState, EHistoricPublishFeed feed)
EHistoricPublishFeedcalls this method to inform a publisher that the notification feed state is eitherEFeedState.UPorEFeedState.DOWN. This callback is provided as a courtesy only since historic publishers are always free to publish notification messages on an historic publish feed (as long asEHistoricPublishFeed.isFeedUp()returnstrue).- Parameters:
feedState-EFeedState.UPif there is at least one subscriber to this notification feed; otherwise set toEFeedState.DOWN.feed- historic publish feed reporting this feed state change.
-
-