|Constructor and Description|
|Modifier and Type||Method and Description|
Create a notification feed.
List all the
@Inject public RemoteNotificationFeedManager(org.apache.twill.discovery.DiscoveryServiceClient discoveryClient)
public boolean createFeed(NotificationFeedInfo feed) throws NotificationFeedException
feed- the feed to create
trueif the feed was created successfully;
NotificationFeedException- if the feed has an incorrect structure; for example, if it is missing a name, a namespace or a category
public void deleteFeed(NotificationFeedId feed) throws NotificationFeedNotFoundException, NotificationFeedException
feedfrom the manager store.
public NotificationFeedInfo getFeed(NotificationFeedId feed) throws NotificationFeedNotFoundException, NotificationFeedException
NotificationFeedIdbased on the
feed.getId()method of the
feed- feed containing the feed Id of the feed to retrieve
NotificationFeedIdof the feed which ID is the same as
NotificationFeedNotFoundException- if the feed does not exist
NotificationFeedException- in case of unforeseen error
public List<NotificationFeedInfo> listFeeds(NamespaceId namespace) throws NotificationFeedException
NotificationFeedInfos present in the manager store for a
Copyright © 2018 Cask Data, Inc.. All rights reserved.