Class SubscriptionImpl<P>

  • Type Parameters:
    P - The type of message produced by this subscription.

    public class SubscriptionImpl<P>
    extends Object
    A subscription.
    Author:
    Bruce Skingle
    • Constructor Detail

      • SubscriptionImpl

        public SubscriptionImpl​(Collection<org.symphonyoss.s2.fugue.naming.TopicName> topicNames,
                                String subscriptionName,
                                @Nullable
                                org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer)
        Constructor.
        Parameters:
        topicNames - One or more topics on which to subscribe.
        subscriptionName - The simple subscription name.
        consumer - A consumer for received messages.
      • SubscriptionImpl

        @Deprecated
        public SubscriptionImpl​(Collection<org.symphonyoss.s2.fugue.naming.TopicName> topicNames,
                                Collection<org.symphonyoss.s2.fugue.naming.TopicName> obsoleteTopicNames,
                                String subscriptionId,
                                String obsoleteSubscriptionId,
                                @Nullable
                                org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer)
        Deprecated.
    • Method Detail

      • getTopicNames

        public Collection<org.symphonyoss.s2.fugue.naming.TopicName> getTopicNames()
        Returns:
        The list of topic names.
      • getObsoleteTopicNames

        @Deprecated
        public Collection<org.symphonyoss.s2.fugue.naming.TopicName> getObsoleteTopicNames()
        Deprecated.
      • getSubscriptionId

        public String getSubscriptionId()
        Returns:
        The simple subscription name.
      • getObsoleteSubscriptionId

        @Deprecated
        public String getObsoleteSubscriptionId()
        Deprecated.
      • getConsumer

        public org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> getConsumer()
        Returns:
        The consumer for received messages.