Package org.symphonyoss.s2.fugue.pubsub
Class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberBase.Builder<P,T,B>,B extends AbstractSubscriberBase<P,B>>
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase.Builder<P,T,B>
-
- Type Parameters:
P- Type of payload received by subscribers.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>
- Direct Known Subclasses:
AbstractSubscriberAdmin.Builder,AbstractSubscriberManager.Builder
- Enclosing class:
- AbstractSubscriberBase<P,T extends AbstractSubscriberBase<P,T>>
public abstract static class AbstractSubscriberBase.Builder<P,T extends AbstractSubscriberBase.Builder<P,T,B>,B extends AbstractSubscriberBase<P,B>> extends org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B>Builder.- Author:
- Bruce Skingle
-
-
Field Summary
Fields Modifier and Type Field Description protected org.symphonyoss.s2.fugue.naming.INameFactorynameFactory_protected List<SubscriptionImpl<P>>subscribers_protected List<Runnable>taskList_protected inttotalSubscriptionCnt_
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)TwithNameFactory(org.symphonyoss.s2.fugue.naming.INameFactory nameFactory)protected TwithSubscription(org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, String[] topicIds)protected TwithSubscription(org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, String topicId, String... additionalTopicIds)protected TwithSubscription(org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, Collection<org.symphonyoss.s2.fugue.naming.TopicName> topicNames)protected TwithSubscription(org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, Subscription subscription)
-
-
-
Field Detail
-
nameFactory_
protected org.symphonyoss.s2.fugue.naming.INameFactory nameFactory_
-
totalSubscriptionCnt_
protected int totalSubscriptionCnt_
-
subscribers_
protected List<SubscriptionImpl<P>> subscribers_
-
-
Method Detail
-
withNameFactory
public T withNameFactory(org.symphonyoss.s2.fugue.naming.INameFactory nameFactory)
-
withSubscription
protected T withSubscription(@Nullable org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, Subscription subscription)
-
withSubscription
protected T withSubscription(@Nullable org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, String topicId, String... additionalTopicIds)
-
withSubscription
protected T withSubscription(@Nullable org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, Collection<org.symphonyoss.s2.fugue.naming.TopicName> topicNames)
-
withSubscription
protected T withSubscription(@Nullable org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<P> consumer, String subscriptionId, String[] topicIds)
-
validate
public void validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
- Overrides:
validatein classorg.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T extends AbstractSubscriberBase.Builder<P,T,B>,B extends AbstractSubscriberBase<P,B>>
-
-