public class StrategyDetailsProvider extends Object implements CachedDataProvider<StrategySubjectInfo>
Constructor and Description |
---|
StrategyDetailsProvider(StrategyDetailsRequestListenerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
onDiscard(StrategySubjectInfo subjectInfo)
Called when the last peer subscribed discards the subject.
|
void |
onRequest(StrategySubjectInfo subjectInfo)
Called on the initial request when the first peer makes a request.
|
void |
setPublisher(CachedPublisher publisher) |
public StrategyDetailsProvider(StrategyDetailsRequestListenerFactory factory)
public void onRequest(StrategySubjectInfo subjectInfo)
CachedDataProvider
onRequest
in interface CachedDataProvider<StrategySubjectInfo>
subjectInfo
- The subject that was requested.public void onDiscard(StrategySubjectInfo subjectInfo)
CachedDataProvider
onDiscard
in interface CachedDataProvider<StrategySubjectInfo>
subjectInfo
- The subject that was discarded.public void setPublisher(CachedPublisher publisher)
Copyright © 2015 Caplin Systems.