Package com.caplin.motif.datasource
Class ObjectPublisher<S>
- java.lang.Object
-
- com.caplin.motif.datasource.ObjectPublisher<S>
-
- Type Parameters:
S
- the type of object this publisher publishes
public class ObjectPublisher<S> extends Object
Publishes objects by serialising before sending on the wire.
-
-
Constructor Summary
Constructors Constructor Description ObjectPublisher(@NotNull SubjectMessagePublisher<SubjectInfo> publisher, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
publish(String subject, S object)
Publish the specified object to clients subscribed to the specified subject.
-
-
-
Constructor Detail
-
ObjectPublisher
public ObjectPublisher(@NotNull @NotNull SubjectMessagePublisher<SubjectInfo> publisher, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-