T - The concrete type returned by fluent methods.B - The concrete type of the built object.protected abstract static class AbstractSubscriberManager.Builder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>> extends AbstractSubscriberBase.Builder<P,T,B> implements ISubscriberManagerBuilder<P,T,B>
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator) |
T |
withConfig(IConfiguration config) |
T |
withCounter(ICounter counter) |
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
String subscriptionId,
Collection<TopicName> topicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
String subscriptionId,
String[] topicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(IThreadSafeRetryableConsumer<P> consumer,
String subscriptionId,
String topicId,
String... additionalTopicIds)
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) |
withNameFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithNameFactorypublic T withSubscription(IThreadSafeRetryableConsumer<P> consumer, Subscription subscription)
withSubscription in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>withSubscription in class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>public T withSubscription(IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, String topicId, String... additionalTopicIds)
ISubscriberManagerBuilderwithSubscription in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>withSubscription in class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>consumer - A consumer for received messages.subscriptionId - A subscription name.topicId - A topic name.additionalTopicIds - An optional list of additional topic names.public T withSubscription(IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, Collection<TopicName> topicNames)
ISubscriberManagerBuilderwithSubscription in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>withSubscription in class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>consumer - A consumer for received messages.subscriptionId - A subscription name.topicNames - A list of topic names.public T withSubscription(IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, String[] topicNames)
ISubscriberManagerBuilderwithSubscription in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>withSubscription in class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>consumer - A consumer for received messages.subscriptionId - A subscription name.topicNames - A list of topic names.public T withConfig(IConfiguration config)
withConfig in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>public T withCounter(ICounter counter)
withCounter in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>public T withTraceContextTransactionFactory(ITraceContextTransactionFactory traceFactory)
withTraceContextTransactionFactory in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>public T withUnprocessableMessageConsumer(IThreadSafeErrorConsumer<P> unprocessableMessageConsumer)
withUnprocessableMessageConsumer in interface ISubscriberManagerBuilder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>public void validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
validate in class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberManager.Builder<P,T,B>,B extends AbstractSubscriberManager<P,B>>Copyright © 2018 Symphony Software Foundation. All rights reserved.