public class

DataStore

extends Object
implements FeedFetcherCache
java.lang.Object
   ↳ org.mule.module.pubsubhubbub.data.DataStore

Summary

Constants
String FEED_FETCHER_CACHE_PARTITION
String SUBSCRIBER_COUNTS_PARTITION_PREFIX
String TOPIC_FEED_IDS_PARTITION
String TOPIC_SUBSCRIPTION_CALLBACKS_PARTITION
Fields
private static final Log LOG
private final PartitionableObjectStore<Serializable> objectStore
Public Constructors
DataStore(PartitionableObjectStore<Serializable> objectStore)
Public Methods
void clear()
SyndFeedInfo getFeedInfo(URL feedUrl)
Set<String> getTopicFeedIds(URI topicUrl)
Set<TopicSubscription> getTopicSubscriptions(URI topicUrl)
int getTotalSubscriberCount(URI topicUrl)
SyndFeedInfo remove(URL feedUrl)
void removeTopicSubscription(TopicSubscription subscription)
void setFeedInfo(URL feedUrl, SyndFeedInfo syndFeedInfo)
void storeSubscriberCount(URI topicUrl, URI callbackUrl, int count)
void storeTopicFeedId(URI topicUrl, String feedId)
void storeTopicSubscription(TopicSubscription subscription)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.sun.syndication.fetcher.impl.FeedFetcherCache

Constants

private static final String FEED_FETCHER_CACHE_PARTITION

Constant Value: "FeedFetcherCache"

private static final String SUBSCRIBER_COUNTS_PARTITION_PREFIX

Constant Value: "SubscriberCounts"

private static final String TOPIC_FEED_IDS_PARTITION

Constant Value: "TopicFeedEntryIds"

private static final String TOPIC_SUBSCRIPTION_CALLBACKS_PARTITION

Constant Value: "TopicSubscriptionCallbacks"

Fields

private static final Log LOG

private final PartitionableObjectStore<Serializable> objectStore

Public Constructors

public DataStore (PartitionableObjectStore<Serializable> objectStore)

Parameters
objectStore

Public Methods

public void clear ()

public SyndFeedInfo getFeedInfo (URL feedUrl)

Parameters
feedUrl

public Set<String> getTopicFeedIds (URI topicUrl)

Parameters
topicUrl

public Set<TopicSubscription> getTopicSubscriptions (URI topicUrl)

Parameters
topicUrl

public int getTotalSubscriberCount (URI topicUrl)

Parameters
topicUrl

public SyndFeedInfo remove (URL feedUrl)

Parameters
feedUrl

public void removeTopicSubscription (TopicSubscription subscription)

Parameters
subscription

public void setFeedInfo (URL feedUrl, SyndFeedInfo syndFeedInfo)

Parameters
feedUrl
syndFeedInfo

public void storeSubscriberCount (URI topicUrl, URI callbackUrl, int count)

Parameters
topicUrl
callbackUrl
count

public void storeTopicFeedId (URI topicUrl, String feedId)

Parameters
topicUrl
feedId

public void storeTopicSubscription (TopicSubscription subscription)

Parameters
subscription