DataSource.NET
7.1.27.94946-7eb8eb54
|
Inherited by Caplin.DataSource.Channel.JsonChannelProvider.
Public Member Functions | |
void | onDiscard (String subject) |
void | onRequest (String subject) |
Interface that must be implemented in order to provide data updates to DataSource peers for cached objects. It contains callbacks that handle subscription and discard requests.
Note: the CachingDataProvider
methods are not called on a dedicated worker thread. Therefore, if any of these methods are likely take a relatively long time to execute, they should be coded to run in a separate thread.
void Caplin.DataSource.Publisher.ICachingDataProvider.onDiscard | ( | String | subject | ) |
Callback that informs the DataProvider that an earlier requested subject has now been discarded.
subject | The subject that has been discarded. |
void Caplin.DataSource.Publisher.ICachingDataProvider.onRequest | ( | String | subject | ) |
Callback that informs the CachingDataProvider
that a new request has been received and it should start sending data.
The CachingDataProvider
should perform the following tasks when this method is called:
CachingDataProvider
should call CachingPublisher::publish(Message) to publish the current image of the data. subject | The subject for this request. |