Class ObjectPublisher<S,​T extends SubjectInfo>

  • Type Parameters:
    S - the type of object this publisher publishes
    T - the type of SubjectInfo the subject is parsed into
    All Implemented Interfaces:
    com.caplin.datasource.publisher.CachingDataProvider

    public class ObjectPublisher<S,​T extends SubjectInfo>
    extends java.lang.Object
    implements com.caplin.datasource.publisher.CachingDataProvider
    Publishes objects by serialising before sending on the wire.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onDiscard​(java.lang.String subject)  
      void onRequest​(java.lang.String subject)  
      void setPublisher​(@NotNull com.caplin.datasource.publisher.CachingPublisher cachingPublisher)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setPublisher

        public void setPublisher​(@NotNull
                                 @NotNull com.caplin.datasource.publisher.CachingPublisher cachingPublisher)
        Specified by:
        setPublisher in interface com.caplin.datasource.publisher.CachingDataProvider
      • onRequest

        public void onRequest​(java.lang.String subject)
        Specified by:
        onRequest in interface com.caplin.datasource.publisher.CachingDataProvider
      • onDiscard

        public void onDiscard​(java.lang.String subject)
        Specified by:
        onDiscard in interface com.caplin.datasource.publisher.CachingDataProvider