DataSource.NET
7.1.29.112283-2b6ad187
|
Inherited by Caplin.DataSource.Messaging.IInternalMessageFactory.
Public Member Functions | |
IJsonMessage | CreateJsonMessage (String subject, Object json) |
ISubjectErrorEvent | CreateSubjectErrorEvent (String subject, SubjectError error, params SubjectErrorFlags[] flags) |
ISubjectStatusEvent | CreateSubjectStatusEvent (String subject, SubjectStatus status, String message) |
A message factory is used to create cached DataSource messages that can be published to other DataSources.
You do not have to implement this interface yourself. An implementation is provided, and can be retrieved from any CachingPublisher by calling the CachingPublisher::getCachedMessageFactory method.
IJsonMessage Caplin.DataSource.Messaging.ICachedMessageFactory.CreateJsonMessage | ( | String | subject, |
Object | json | ||
) |
ISubjectErrorEvent Caplin.DataSource.Messaging.ICachedMessageFactory.CreateSubjectErrorEvent | ( | String | subject, |
SubjectError | error, | ||
params SubjectErrorFlags[] | flags | ||
) |
Creates a subject error event.
subject | The subject to which the error relates. |
error | The error. |
flags | Additional flags to be set on the nodata |
ISubjectStatusEvent Caplin.DataSource.Messaging.ICachedMessageFactory.CreateSubjectStatusEvent | ( | String | subject, |
SubjectStatus | status, | ||
String | message | ||
) |
Creates a subject status event.
subject | The subject to which the status relates. |
status | The status. |
message | A free form textual message indicating the reason for the status message being raised. |