T - must be either ERequestFeed,
ESubscribeFeed, or EPublishFeed.@FunctionalInterface public interface FeedStatusCallback<T extends IEFeed>
ESubscriber,
EPublisher, or ERequestor is not required
to override the matching feed status method (
ESubscriber.feedStatus(EFeedState, IESubscribeFeed),
EPublisher.publishStatus(EFeedState, IEPublishFeed), or
ERequestor.feedStatus(EFeedState, ERequestFeed)).
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.
| Modifier and Type | Method and Description |
|---|---|
void |
call(EFeedState feedState,
T feed)
|
void call(EFeedState feedState, T feed)
feedState - the subscription's new feed state.feed - the status applies to this feed.Copyright © 2019. All rights reserved.