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:

ContentDistributionServiceImpl

public ContentDistributionServiceImpl()

Creates a new instance of ContentDistributionServiceImpl, with all fields set to null.

Methods

distribute

public void distribute(String url)

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:
  • distributionServiceDelegateDistributionServiceDelegate to be set