Package org.symphonyoss.s2.fugue.pubsub
Class AbstractSubscriberManager.Builder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberManager.Builder<T,B>
-
- Type Parameters:
T- The concrete type returned by fluent methods.B- The concrete type of the built object.
- All Implemented Interfaces:
org.symphonyoss.s2.common.fluent.IBuilder<T,B>,org.symphonyoss.s2.common.fluent.IFluent<T>,ISubscriberManagerBuilder<T,B>
- Direct Known Subclasses:
AbstractPullSubscriberManager.Builder
- Enclosing class:
- AbstractSubscriberManager<T extends AbstractSubscriberManager<T>>
protected abstract static class AbstractSubscriberManager.Builder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>> extends org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B> implements ISubscriberManagerBuilder<T,B>
Builder.- Author:
- Bruce Skingle
-
-
Field Summary
Fields Modifier and Type Field Description protected org.symphonyoss.s2.fugue.config.IConfigurationconfig_protected org.symphonyoss.s2.fugue.counter.ICountercounter_protected org.symphonyoss.s2.fugue.naming.INameFactorynameFactory_protected List<ISubscription>subscribers_protected inttotalSubscriptionCnt_protected org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactorytraceFactory_protected org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<String>unprocessableMessageConsumer_
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactorygetTraceContextTransactionFactory()voidvalidate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)TwithConfig(org.symphonyoss.s2.fugue.config.IConfiguration config)TwithCounter(org.symphonyoss.s2.fugue.counter.ICounter counter)TwithNameFactory(org.symphonyoss.s2.fugue.naming.INameFactory nameFactory)TwithSubscription(ISubscription subscription)TwithTraceContextTransactionFactory(org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactory traceFactory)TwithUnprocessableMessageConsumer(org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<String> unprocessableMessageConsumer)
-
-
-
Field Detail
-
nameFactory_
protected org.symphonyoss.s2.fugue.naming.INameFactory nameFactory_
-
subscribers_
protected List<ISubscription> subscribers_
-
traceFactory_
protected org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactory traceFactory_
-
unprocessableMessageConsumer_
protected org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<String> unprocessableMessageConsumer_
-
config_
protected org.symphonyoss.s2.fugue.config.IConfiguration config_
-
counter_
protected org.symphonyoss.s2.fugue.counter.ICounter counter_
-
totalSubscriptionCnt_
protected int totalSubscriptionCnt_
-
-
Method Detail
-
withNameFactory
public T withNameFactory(org.symphonyoss.s2.fugue.naming.INameFactory nameFactory)
- Specified by:
withNameFactoryin interfaceISubscriberManagerBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
withSubscription
public T withSubscription(ISubscription subscription)
- Specified by:
withSubscriptionin interfaceISubscriberManagerBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
withConfig
public T withConfig(org.symphonyoss.s2.fugue.config.IConfiguration config)
- Specified by:
withConfigin interfaceISubscriberManagerBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
withCounter
public T withCounter(org.symphonyoss.s2.fugue.counter.ICounter counter)
- Specified by:
withCounterin interfaceISubscriberManagerBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
withTraceContextTransactionFactory
public T withTraceContextTransactionFactory(org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactory traceFactory)
- Specified by:
withTraceContextTransactionFactoryin interfaceISubscriberManagerBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
getTraceContextTransactionFactory
public org.symphonyoss.s2.fugue.core.trace.ITraceContextTransactionFactory getTraceContextTransactionFactory()
-
withUnprocessableMessageConsumer
public T withUnprocessableMessageConsumer(org.symphonyoss.s2.fugue.pipeline.IThreadSafeErrorConsumer<String> unprocessableMessageConsumer)
- Specified by:
withUnprocessableMessageConsumerin interfaceISubscriberManagerBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
validate
public void validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
- Overrides:
validatein classorg.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T extends AbstractSubscriberManager.Builder<T,B>,B extends AbstractSubscriberManager<B>>
-
-