public class CachedSubscriptionManager<T extends SubjectInfo> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CachedSubscriptionManager.UpdateCachedMessageResult |
Constructor and Description |
---|
CachedSubscriptionManager(CachedDataProvider<T> dataProvider,
SubjectParser<T> subjectParser) |
Modifier and Type | Method and Description |
---|---|
void |
clearAll() |
void |
clearAndUnsubscribe(String subject) |
boolean |
getAndSetStaleStatus(String subject,
boolean newStaleValue) |
CachedSubscription |
getOrCreateAndSubscribe(String subject) |
CachedSubscriptionManager.UpdateCachedMessageResult |
updateCachedMessage(String subject,
com.caplin.datasource.messaging.Message newMessage) |
public CachedSubscriptionManager(CachedDataProvider<T> dataProvider, SubjectParser<T> subjectParser)
public CachedSubscription getOrCreateAndSubscribe(String subject) throws SubjectParserException
SubjectParserException
public CachedSubscriptionManager.UpdateCachedMessageResult updateCachedMessage(String subject, com.caplin.datasource.messaging.Message newMessage)
public void clearAndUnsubscribe(String subject)
public void clearAll()
public boolean getAndSetStaleStatus(String subject, boolean newStaleValue)
Copyright © 2015 Caplin Systems.