Package org.symphonyoss.s2.fugue.pubsub
Class AbstractSubscriberBase<P,T extends AbstractSubscriberBase<P,T>>
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.fugue.FugueLifecycleComponent<T>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase<P,T>
-
- Type Parameters:
P- Type of payload received.T- Type of concrete manager, needed for fluent methods.
- All Implemented Interfaces:
org.symphonyoss.s2.common.fluent.IFluent<T>,org.symphonyoss.s2.fugue.IFugueComponent,org.symphonyoss.s2.fugue.IFugueLifecycleComponent
- Direct Known Subclasses:
AbstractSubscriberAdmin,AbstractSubscriberManager
public abstract class AbstractSubscriberBase<P,T extends AbstractSubscriberBase<P,T>> extends org.symphonyoss.s2.fugue.FugueLifecycleComponent<T>Base class for subscriber managers and admin controllers.- Author:
- Bruce Skingle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSubscriberBase.Builder<P,T extends AbstractSubscriberBase.Builder<P,T,B>,B extends AbstractSubscriberBase<P,B>>Builder.
-
Field Summary
Fields Modifier and Type Field Description protected org.symphonyoss.s2.fugue.naming.INameFactorynameFactory_protected com.google.common.collect.ImmutableList<SubscriptionImpl<P>>subscribers_protected inttotalSubscriptionCnt_
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSubscriberBase(Class<T> type, AbstractSubscriberBase.Builder<P,?,T> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertConfigurable()org.symphonyoss.s2.fugue.FugueLifecycleStategetLifecycleState()protected List<SubscriptionImpl<P>>getSubscribers()protected intgetTotalSubscriptionCnt()protected voidsetLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
nameFactory_
protected final org.symphonyoss.s2.fugue.naming.INameFactory nameFactory_
-
subscribers_
protected final com.google.common.collect.ImmutableList<SubscriptionImpl<P>> subscribers_
-
totalSubscriptionCnt_
protected final int totalSubscriptionCnt_
-
-
Constructor Detail
-
AbstractSubscriberBase
protected AbstractSubscriberBase(Class<T> type, AbstractSubscriberBase.Builder<P,?,T> builder)
-
-
Method Detail
-
getSubscribers
protected List<SubscriptionImpl<P>> getSubscribers()
-
getTotalSubscriptionCnt
protected int getTotalSubscriptionCnt()
-
assertConfigurable
protected void assertConfigurable()
-
setLifeCycleState
protected void setLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)
-
getLifecycleState
public org.symphonyoss.s2.fugue.FugueLifecycleState getLifecycleState()
-
-