DistributionServiceDelegate¶
-
public interface
DistributionServiceDelegate¶ This is an interface providing methods to get the Content of an updated topic and distribute it to all the subscribers for that topic.
Author: Anuranjan
Methods¶
distribute¶
-
void
distribute(String callbackUrl, String content, MediaType contentType, String topicUrl)¶ Distributes the fetched content to all the subscribers subscribed to the particular topic.
Parameters: - callbackUrl –
- a
Stringrepresenting the subscriber’s callback URL where notifications should be delivered
- a
- content –
- a
Stringrepresenting the full content of the updated topic
- a
- contentType –
- a
Stringrepresenting theContent-Typeof the topic updated
- a
- topicUrl –
- a
Stringrepresenting the URL of the topic which is updated
- a
- callbackUrl –
getContent¶
-
ResponseEntity<String>
getContent(String topicUrl)¶ Fetches the content from a publisher corresponding to the
topicUrl.Parameters: - topicUrl –
- a
Stringrepresenting the topic URL which is updated
- a
Returns: ResponseEntitycontaining fetched content- topicUrl –