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).
      • withFilterPropertyName

        public T withFilterPropertyName​(String filterPropertyName)
        Set the name of the property to be used for filtering.
        Parameters:
        filterPropertyName - The name of the property to be used for filtering.
        Returns:
        This (fluent method).
      • withFilterExclude

        public T withFilterExclude​(boolean filterExclude)
        Set the filtering to be inclusive or exclusive.
        Parameters:
        filterExclude - If true then filtering is exclusive, the default is inclusive.
        Returns:
        This (fluent method).
      • withFilterPropertyValues

        public T withFilterPropertyValues​(String... value)
        Add the given values to the list of filterPropertyName values to be accepted or excluded.
        Parameters:
        value - values of filterPropertyName values to be accepted or excluded.
        Returns:
        This (fluent method).
      • withLambdaConsumer

        public T withLambdaConsumer​(String lambdaConsumer)
        Set the name of a lambda function to be triggered to process messages on this subscription.
        Parameters:
        lambdaConsumer - The name of a lambda function to be triggered to process messages on this subscription.
        Returns:
        this (fluent method).