ContentDistributionServiceImpl¶
-
public class
ContentDistributionServiceImpl
implements ContentDistributionService¶ Default implementation of
org.motechproject.hub.service.ContentDistributionService
Constructors¶
ContentDistributionServiceImpl¶
-
public
ContentDistributionServiceImpl
(HubTopicMDSService hubTopicService, HubSubscriptionMDSService hubSubscriptionMDSService, HubPublisherTransactionMDSService hubPublisherTransactionMDSService, HubSubscriberTransactionMDSService hubSubscriberTransactionMDSService, HubDistributionContentMDSService hubDistributionContentMDSService)¶ Creates a new instance of
ContentDistributionServiceImpl
, with all fields set to the autowired parameters values.Parameters: - hubTopicService – autowired
org.motechproject.hub.mds.service.HubTopicMDSService
- hubSubscriptionMDSService – autowired
org.motechproject.hub.mds.service.HubSubscriberTransactionMDSService
- hubPublisherTransactionMDSService – autowired
org.motechproject.hub.mds.service.HubPublisherTransactionMDSService
- hubSubscriberTransactionMDSService – autowired
org.motechproject.hub.mds.service.HubSubscriberTransactionMDSService
- hubDistributionContentMDSService – autowired
org.motechproject.hub.mds.service.HubDistributionContentMDSService
- hubTopicService – autowired
Methods¶
getDistributionServiceDelegate¶
-
public DistributionServiceDelegate
getDistributionServiceDelegate
()¶ Gets
DistributionServiceDelegate
used for this class to fetching and distributing fetched content to all interested subscribers.Returns: the DistributionServiceDelegate
object
setDistributionServiceDelegate¶
-
public void
setDistributionServiceDelegate
(DistributionServiceDelegate distributionServiceDelegate)¶ Sets
DistributionServiceDelegate
to the value passed in a parameter. It’s used for fetching and distributing fetched content to all interested subscribers.Parameters: - distributionServiceDelegate –
DistributionServiceDelegate
to be set
- distributionServiceDelegate –