Class SingleValueProviderWrapper<T,S extends SubjectInfo>
java.lang.Object
com.caplin.motif.datasource.provider.SingleValueProviderWrapper<T,S>
- All Implemented Interfaces:
CachedDataProvider<S>
public class SingleValueProviderWrapper<T,S extends SubjectInfo>
extends Object
implements CachedDataProvider<S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialise(SingleValuePublisher<T, S> publisher) voidCalled when the last peer subscribed discards the subject.voidCalled on the initial request when the first peer makes a request.
-
Constructor Details
-
SingleValueProviderWrapper
-
-
Method Details
-
initialise
-
onRequest
Description copied from interface:CachedDataProviderCalled on the initial request when the first peer makes a request.- Specified by:
onRequestin interfaceCachedDataProvider<T>- Parameters:
subjectInfo- The subject that was requested.
-
onDiscard
Description copied from interface:CachedDataProviderCalled when the last peer subscribed discards the subject.- Specified by:
onDiscardin interfaceCachedDataProvider<T>- Parameters:
subject- The subject that was discarded.
-