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 Details

  • Method Details

    • initialise

      public void initialise(SingleValuePublisher<T,S> publisher)
    • onRequest

      public void onRequest(S subjectInfo)
      Description copied from interface: CachedDataProvider
      Called on the initial request when the first peer makes a request.
      Specified by:
      onRequest in interface CachedDataProvider<T>
      Parameters:
      subjectInfo - The subject that was requested.
    • onDiscard

      public void onDiscard(S subject)
      Description copied from interface: CachedDataProvider
      Called when the last peer subscribed discards the subject.
      Specified by:
      onDiscard in interface CachedDataProvider<T>
      Parameters:
      subject - The subject that was discarded.