P - The type of the payload.public class ConfigSubscription<P> extends Subscription<P>
| Constructor and Description |
|---|
ConfigSubscription(String topicListConfigName,
String subscriptionConfigName,
IThreadSafeRetryableConsumer<P> consumer)
Construct a subscriber whose parameters are defined in configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSubscriptionName() |
Collection<String> |
getTopicNames() |
void |
resolve(IConfigurationProvider config) |
getConsumerpublic ConfigSubscription(String topicListConfigName, String subscriptionConfigName, IThreadSafeRetryableConsumer<P> consumer)
topicListConfigName - The name of a key in the given configuration which contains the name of one or more topicssubscriptionConfigName - The name of a key in the given configuration which contains the name of the subscriptionconsumer - A consumer for received messages.public void resolve(IConfigurationProvider config)
resolve in class Subscription<P>public Collection<String> getTopicNames()
getTopicNames in class Subscription<P>public String getSubscriptionName()
getSubscriptionName in class Subscription<P>Copyright © 2018 Symphony Software Foundation. All rights reserved.