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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialise
(SingleValuePublisher<T, S> publisher) void
Called when the last peer subscribed discards the subject.void
Called on the initial request when the first peer makes a request.
-
Constructor Details
-
SingleValueProviderWrapper
-
-
Method Details
-
initialise
-
onRequest
Description copied from interface:CachedDataProvider
Called on the initial request when the first peer makes a request.- Specified by:
onRequest
in interfaceCachedDataProvider<T>
- Parameters:
subjectInfo
- The subject that was requested.
-
onDiscard
Description copied from interface:CachedDataProvider
Called when the last peer subscribed discards the subject.- Specified by:
onDiscard
in interfaceCachedDataProvider<T>
- Parameters:
subject
- The subject that was discarded.
-