P - The type of message produced by this subscription.public class Subscription<P> extends Object
| Constructor and Description |
|---|
Subscription(List<String> topicNames,
String subscriptionName,
IThreadSafeRetryableConsumer<P> consumer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IThreadSafeRetryableConsumer<P> |
getConsumer() |
String |
getSubscriptionName() |
Collection<String> |
getTopicNames() |
public Subscription(List<String> 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.public Collection<String> getTopicNames()
public String getSubscriptionName()
public IThreadSafeRetryableConsumer<P> getConsumer()
Copyright © 2018 Symphony Software Foundation. All rights reserved.