Package net.sf.eBus.feed.historic
Interface HistoricFeedStatusCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HistoricFeedStatusCallback
An eBus client implementingIEHistoricSubscribermay choose to implement this functional interface as aprivatemethod instead of implementing thepublicIEHistoricSubscriber.feedStatus(PublishStatusEvent, EHistoricSubscribeFeed)method. This privateHistoricFeedStatusCallbackmethod is then passed toEHistoricSubscribeFeed.Builder.statusCallback(HistoricFeedStatusCallback).Note: this callback may only be set when building an
EHistoricSubscribeFeedinstance. Once built, the publisher feed status callback target may not be changed.Note: failure to implement
IEHistoricSubscriber.statusCallbackor to pass aHistoricFeedStatusCallbackmethod toBuilder.statusCallbackresults in aBuilder.build()failure.- Author:
- Charles W. Rapp
- See Also:
EHistoricSubscribeFeed,HistoricNotifyCallback,HistoricFeedDoneCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcall(PublishStatusEvent event, EHistoricSubscribeFeed feed)eBus calls this method to inform subscriber that the publisher feed state is eitherEFeedState.UPorEFeedState.DOWN.
-
-
-
Method Detail
-
call
void call(PublishStatusEvent event, EHistoricSubscribeFeed feed)
eBus calls this method to inform subscriber that the publisher feed state is eitherEFeedState.UPorEFeedState.DOWN.- Parameters:
event- publish status event contains the publisher's latestfeed statefor the givenmessage key.feed- historic subscribe feed.
-
-