Class ObjectPublisher<S,T extends SubjectInfo>

java.lang.Object
com.caplin.motif.datasource.ObjectPublisher<S,T>
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 Object implements com.caplin.datasource.publisher.CachingDataProvider
Publishes objects by serialising before sending on the wire.
  • Constructor Details

  • Method Details

    • 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(String subject)
      Specified by:
      onRequest in interface com.caplin.datasource.publisher.CachingDataProvider
    • onDiscard

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