AtomClientService¶
-
public interface
AtomClientService
¶ The main service for this module. Enables fetching of the atom feed(s) specified in the settings and also enables changing the automatic fetch job schedule
Methods¶
fetch¶
-
void
fetch
()¶ Fetches the atom feed(s) specified in atom-client-feeds.json setting file. Note: a org.motechproject.atomclient.feedchange MOTECH event will be sent for each feed entry content that changed since the last time the feed was fetched.
read¶
scheduleFetchJob¶
-
void
scheduleFetchJob
(String cronExpression)¶ Schedules the fetch job on the given cron expression, or unschedules the fetch job given an empty cron expression Note: the fetch job is automatically scheduled (from the current settings) when the module starts
Parameters: - cronExpression – a cron expression that describes how often to fetch, or an empty string which disables automatic fetching