Class SingleValueProviderWrapper<T,​S extends SubjectInfo>

    • Constructor Detail

      • SingleValueProviderWrapper

        public SingleValueProviderWrapper​(SingleValueProvider<T,​S> provider)
    • Method Detail

      • 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.