public interface Publisher
DataSource for Java includes several implementations of
Publisher that you can use
in your DataSource application: see
CompatibilityPublisher. To use one of these
Publishers, call the appropriate
"create publisher" method on the API:
These three child interfaces declare no methods further to those declared in
Publisher and currently only serve to tag each
Publisher type. However,
it is possible that future versions of DataSource for Java may add publisher-type specific
methods to these interfaces if deemed appropriate or useful.
|Modifier and Type||Method and Description|
Publishes the initial image of the data for a subject to peers that have just requested (subscribed to) that subject.
Publishes a message that instructs the peer that it should request a different subject and map the updates across.
Publishes to all peers subscribed to a subject an event detailing an error in the subscription for that subject.
Publishes to all subscribed peers an event about the change in status of a subject.
Publishes a message to subscribed peers (that is, the peers that have already received an initial image).
MessageFactoryused to create the messages that are published via this
void publishInitialMessage(Message message)
message- The message.
void publishToSubscribedPeers(Message message)
message- The message to be published. This may be an image or an update.
void publishMappingMessage(MappingMessage mappingMessage)
mappingMessage- The message.
void publishSubjectErrorEvent(SubjectErrorEvent subjectErrorEvent)
DataProviderwill use this to notify the remote peers that the data they are subscribed to is no longer available.
subjectErrorEvent- The error event to be published.
void publishSubjectStatusEvent(SubjectStatusEvent subjectStatusEvent)
subjectStatusEvent- The subject status event to be published.
Please send bug reports and comments to Caplin support