P - The type of payload received.T - Type of concrete builder, needed for fluent methods.B - Type of concrete manager (built object), needed for fluent methods.public interface ISubscriberManagerBuilder<P,T extends ISubscriberManagerBuilder<P,T,B>,B extends ISubscriberManager<P,B>>
extends org.symphonyoss.s2.common.fluent.IBuilder<T,B>
| Modifier and Type | Method and Description |
|---|---|
T |
withConfig(IConfiguration config) |
T |
withCounter(ICounter counter) |
T |
withNameFactory(INameFactory nameFactory) |
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
String subscriptionName,
Collection<TopicName> topicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
String subscriptionName,
String[] topicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
String subscriptionName,
String topicName,
String... additionalTopicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
Subscription subscription) |
T |
withTraceContextTransactionFactory(ITraceContextTransactionFactory traceFactory) |
T |
withUnprocessableMessageConsumer(IThreadSafeErrorConsumer<P> unprocessableMessageConsumer) |
T withNameFactory(INameFactory nameFactory)
T withSubscription(IThreadSafeRetryableConsumer<P> consumer, Subscription subscription)
T withSubscription(IThreadSafeRetryableConsumer<P> consumer, String subscriptionName, String topicName, String... additionalTopicNames)
consumer - A consumer for received messages.subscriptionName - A subscription name.topicName - A topic name.additionalTopicNames - An optional list of additional topic names.T withSubscription(IThreadSafeRetryableConsumer<P> consumer, String subscriptionName, Collection<TopicName> topicNames)
consumer - A consumer for received messages.subscriptionName - A subscription name.topicNames - A list of topic names.IllegalArgumentException - If the list of topics is empty.T withSubscription(IThreadSafeRetryableConsumer<P> consumer, String subscriptionName, String[] topicNames)
consumer - A consumer for received messages.subscriptionName - A subscription name.topicNames - A list of topic names.IllegalArgumentException - If the list of topics is empty.T withConfig(IConfiguration config)
T withTraceContextTransactionFactory(ITraceContextTransactionFactory traceFactory)
T withUnprocessableMessageConsumer(IThreadSafeErrorConsumer<P> unprocessableMessageConsumer)
Copyright © 2018 Symphony Software Foundation. All rights reserved.