P - The type of payload received.T - Type of concrete manager, needed for fluent methods.public interface ISubscriberManager<P,T extends ISubscriberManager<P,T>>
extends org.symphonyoss.s2.common.fluent.IFluent<T>
| Modifier and Type | Method and Description |
|---|---|
T |
withSubscription(String topicName,
String subscriptionName,
IThreadSafeRetryableConsumer<P> consumer)
Add the given subscription.
|
T |
withSubscriptionsByConfig(List<String> topicNames,
String subscriptionName,
IThreadSafeRetryableConsumer<P> consumer)
Subscribe to the given subscription on the given topic.
|
T withSubscriptionsByConfig(List<String> topicNames, String subscriptionName, IThreadSafeRetryableConsumer<P> consumer)
topicNames - A list of topic names.subscriptionName - A subscription name.consumer - A consumer for received messages.IllegalArgumentException - If a duplicate request is made.T withSubscription(String topicName, String subscriptionName, IThreadSafeRetryableConsumer<P> consumer)
topicName - A topic namesubscriptionName - A subscription nameconsumer - The consumer for received messages.Copyright © 2018 Symphony Software Foundation. All rights reserved.