Class TopicSubscriptionAdmin.AbstractBuilder<T extends TopicSubscriptionAdmin.AbstractBuilder<T,​B>,​B extends ISubscriptionAdmin>

    • Constructor Detail

      • AbstractBuilder

        protected AbstractBuilder​(Class<T> type)
    • Method Detail

      • withSubscriptionId

        public T withSubscriptionId​(String subscriptionId)
        Set the optional subscriptionId. The subscription (or queue in the case of SNS/SQS) will be named using the service name of the topic owner and the subscriber. In the case where a single subscribing service requires more than one subscription an additional subscription ID is needed to distinguish the multiple subscriptions.
        Parameters:
        subscriptionId - The subscription ID.
        Returns:
        This (fluent method).
      • withServiceId

        public T withServiceId​(String serviceId)
        Set the serviceId of the topic owner. Defaults to the service ID in the provided nameFactory.
        Parameters:
        serviceId - The serviceId of the topic owner.
        Returns:
        This (fluent method).
      • withTopicIds

        public T withTopicIds​(String... topicIds)
        Add the given topic IDs to the list of topics to be subscribed to.
        Parameters:
        topicIds - topic IDs to the list of topics to be subscribed to.
        Returns:
        This (fluent method).