P - The type of message produced by this subscription.public class SubscriptionImpl<P> extends Object
| Constructor and Description |
|---|
SubscriptionImpl(Collection<TopicName> topicNames,
Collection<TopicName> obsoleteTopicNames,
String subscriptionId,
String obsoleteSubscriptionId,
IThreadSafeRetryableConsumer<P> consumer)
Deprecated.
|
SubscriptionImpl(Collection<TopicName> topicNames,
String subscriptionName,
IThreadSafeRetryableConsumer<P> consumer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IThreadSafeRetryableConsumer<P> |
getConsumer() |
String |
getObsoleteSubscriptionId()
Deprecated.
|
Collection<TopicName> |
getObsoleteTopicNames()
Deprecated.
|
String |
getSubscriptionId() |
Collection<TopicName> |
getTopicNames() |
public SubscriptionImpl(Collection<TopicName> topicNames, String subscriptionName, @Nullable IThreadSafeRetryableConsumer<P> consumer)
topicNames - One or more topics on which to subscribe.subscriptionName - The simple subscription name.consumer - A consumer for received messages.@Deprecated public SubscriptionImpl(Collection<TopicName> topicNames, Collection<TopicName> obsoleteTopicNames, String subscriptionId, String obsoleteSubscriptionId, @Nullable IThreadSafeRetryableConsumer<P> consumer)
public Collection<TopicName> getTopicNames()
@Deprecated public Collection<TopicName> getObsoleteTopicNames()
public String getSubscriptionId()
@Deprecated public String getObsoleteSubscriptionId()
public IThreadSafeRetryableConsumer<P> getConsumer()
Copyright © 2018 Symphony Software Foundation. All rights reserved.