Package net.sf.eBus.client
Interface FeedStatusCallback<T extends IEFeed>
-
- Type Parameters:
T
- must be eitherERequestFeed
,ESubscribeFeed
, orEPublishFeed
.
- 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 FeedStatusCallback<T extends IEFeed>
An eBus client implementing eitherESubscriber
,EPublisher
, orERequestor
is not required to override the matching feed status method (ESubscriber.feedStatus(EFeedState, IESubscribeFeed)
,EPublisher.publishStatus(EFeedState, IEPublishFeed)
, orERequestor.feedStatus(EFeedState, IERequestFeed)
). Instead, a lambda expression implementing this interface may be used as the callback. This allows for tighter coupling between the status callback and the code for handling the callback.Note: This must be done after opening a feed and before advertising or subscribing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
call(EFeedState feedState, T feed)
-
-
-
Method Detail
-
call
void call(EFeedState feedState, T feed)
- Parameters:
feedState
- the subscription's new feed state.feed
- the status applies to this feed.
-
-