Package org.symphonyoss.s2.fugue.pubsub
Class AbstractPullSubscriberManager<T extends AbstractPullSubscriberManager<T>>
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.fugue.FugueLifecycleComponent<T>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractSubscriberManager<T>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractPullSubscriberManager<T>
-
- Type Parameters:
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<T>
public abstract class AbstractPullSubscriberManager<T extends AbstractPullSubscriberManager<T>> extends AbstractSubscriberManager<T>
Base class for synchronous pull type implementations.- Author:
- Bruce Skingle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractPullSubscriberManager.Builder<T extends AbstractPullSubscriberManager.Builder<T,B>,B extends AbstractPullSubscriberManager<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, nameFactory_, subscribers_, totalSubscriptionCnt_, traceFactory_, unprocessableMessageConsumer_
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPullSubscriberManager(Class<T> type, AbstractPullSubscriberManager.Builder<?,T> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertConfigurable()protected org.symphonyoss.s2.fugue.counter.IBusyCountercreateBusyCounter(org.symphonyoss.s2.fugue.naming.Name subscriptionName)protected org.symphonyoss.s2.fugue.counter.ITopicBusyCounterFactorygetBusyCounterFactory()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, getTotalSubscriptionCnt, getTraceFactory, handleMessage, initSubscription, quiesce, startSubscriptions, stop
-
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<?,T> builder)
-
-
Method Detail
-
getBusyCounterFactory
protected org.symphonyoss.s2.fugue.counter.ITopicBusyCounterFactory getBusyCounterFactory()
-
start
public void start()
- Specified by:
startin interfaceorg.symphonyoss.s2.fugue.IFugueComponent- Overrides:
startin classAbstractSubscriberManager<T extends AbstractPullSubscriberManager<T>>
-
stopSubscriptions
protected void stopSubscriptions()
Description copied from class:AbstractSubscriberManagerStop all subscribers.- Specified by:
stopSubscriptionsin classAbstractSubscriberManager<T extends AbstractPullSubscriberManager<T>>
-
submit
protected void submit(Runnable subscriber, boolean force)
-
printQueueSize
protected void printQueueSize()
-
createBusyCounter
protected org.symphonyoss.s2.fugue.counter.IBusyCounter createBusyCounter(org.symphonyoss.s2.fugue.naming.Name subscriptionName)
-
assertConfigurable
protected void assertConfigurable()
-
setLifeCycleState
protected void setLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)
-
getLifecycleState
public org.symphonyoss.s2.fugue.FugueLifecycleState getLifecycleState()
-
-