Package org.symphonyoss.s2.fugue.pubsub
Class AbstractPullSubscriberManager<P,T extends AbstractPullSubscriberManager<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>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberManager<P,T>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractPullSubscriberManager<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,ISubscriberManager<P,T>
public abstract class AbstractPullSubscriberManager<P,T extends AbstractPullSubscriberManager<P,T>> extends AbstractSubscriberManager<P,T>
Base class for synchronous pull type implementations.- Author:
- Bruce Skingle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractPullSubscriberManager.Builder<P,T extends AbstractPullSubscriberManager.Builder<P,T,B>,B extends AbstractPullSubscriberManager<P,B>>Builder.
-
Field Summary
-
Fields inherited from class org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberManager
config_, counter_, FAILED_CONSUMER_RETRY_TIME, FAILED_DEAD_LETTER_RETRY_TIME, MESSAGE_PROCESSED_OK, traceFactory_, unprocessableMessageConsumer_
-
Fields inherited from class org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase
nameFactory_, subscribers_, totalSubscriptionCnt_
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPullSubscriberManager(Class<T> type, AbstractPullSubscriberManager.Builder<P,?,T> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertConfigurable()protected org.symphonyoss.s2.fugue.counter.IBusyCountergetBusyCounter()org.symphonyoss.s2.fugue.FugueLifecycleStategetLifecycleState()protected voidprintQueueSize()protected voidsetLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)voidstart()protected voidstopSubscriptions()Stop all subscribers.protected voidsubmit(Runnable subscriber, boolean force)-
Methods inherited from class org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberManager
getCounter, getTraceFactory, handleMessage, initSubscription, quiesce, startSubscriptions, stop
-
Methods inherited from class org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberBase
getSubscribers, getTotalSubscriptionCnt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AbstractPullSubscriberManager
protected AbstractPullSubscriberManager(Class<T> type, AbstractPullSubscriberManager.Builder<P,?,T> builder)
-
-
Method Detail
-
getBusyCounter
protected org.symphonyoss.s2.fugue.counter.IBusyCounter getBusyCounter()
-
start
public void start()
- Specified by:
startin interfaceorg.symphonyoss.s2.fugue.IFugueComponent- Overrides:
startin classAbstractSubscriberManager<P,T extends AbstractPullSubscriberManager<P,T>>
-
stopSubscriptions
protected void stopSubscriptions()
Description copied from class:AbstractSubscriberManagerStop all subscribers.- Specified by:
stopSubscriptionsin classAbstractSubscriberManager<P,T extends AbstractPullSubscriberManager<P,T>>
-
submit
protected void submit(Runnable subscriber, boolean force)
-
printQueueSize
protected void printQueueSize()
-
assertConfigurable
protected void assertConfigurable()
-
setLifeCycleState
protected void setLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)
-
getLifecycleState
public org.symphonyoss.s2.fugue.FugueLifecycleState getLifecycleState()
-
-