Class AbstractSubscriberAdmin.Builder<T extends AbstractSubscriberAdmin.Builder<T,​B>,​B extends AbstractSubscriberAdmin<B>>

    • Constructor Detail

      • Builder

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

      • withSubscription

        public T withSubscription​(String subscriptionId,
                                  String topicId,
                                  String... additionalTopicIds)
        Description copied from interface: ISubscriberAdminBuilder
        Subscribe to the given subscription on the given topics. This method allows for the creation of the same subscription on one or more topics, the same consumer will receive messages received on the given subscription on any of the topics. The topics are all treated in the same way, the method is declared with topic and additionalTopics to ensure that at least one topic is provided. This method does the same thing as the other withSubscription methods, alternative signatures are provided as a convenience.
        Specified by:
        withSubscription in interface ISubscriberAdminBuilder<T extends AbstractSubscriberAdmin.Builder<T,​B>,​B extends AbstractSubscriberAdmin<B>>
        Parameters:
        subscriptionId - A subscription name.
        topicId - A topic name.
        additionalTopicIds - An optional list of additional topic names.
        Returns:
        this (fluent method)
      • withSubscription

        public T withSubscription​(String subscriptionId,
                                  Collection<org.symphonyoss.s2.fugue.naming.TopicName> topicNames)
        Description copied from interface: ISubscriberAdminBuilder
        Subscribe to the given subscription on the given topics. This method allows for the creation of the same subscription on one or more topics, the same consumer will receive messages received on the given subscription on any of the topics. The topics are all treated in the same way, the method is declared with topic and additionalTopics to ensure that at least one topic is provided. This method does the same thing as the other withSubscription methods, alternative signatures are provided as a convenience.
        Specified by:
        withSubscription in interface ISubscriberAdminBuilder<T extends AbstractSubscriberAdmin.Builder<T,​B>,​B extends AbstractSubscriberAdmin<B>>
        Parameters:
        subscriptionId - A subscription name.
        topicNames - A list of topic names.
        Returns:
        this (fluent method)
      • withSubscription

        public T withSubscription​(String subscriptionId,
                                  String[] topicNames)
        Description copied from interface: ISubscriberAdminBuilder
        Subscribe to the given subscription on the given topics. This method allows for the creation of the same subscription on one or more topics, the same consumer will receive messages received on the given subscription on any of the topics. The topics are all treated in the same way, the method is declared with topic and additionalTopics to ensure that at least one topic is provided. This method does the same thing as the other withSubscription methods, alternative signatures are provided as a convenience.
        Specified by:
        withSubscription in interface ISubscriberAdminBuilder<T extends AbstractSubscriberAdmin.Builder<T,​B>,​B extends AbstractSubscriberAdmin<B>>
        Parameters:
        subscriptionId - A subscription name.
        topicNames - A list of topic names.
        Returns:
        this (fluent method)