Package org.symphonyoss.s2.fugue.pubsub
Class AbstractPullSubscriber
- java.lang.Object
-
- org.symphonyoss.s2.fugue.pubsub.AbstractPullSubscriber
-
-
Constructor Summary
Constructors Constructor Description AbstractPullSubscriber(AbstractPullSubscriberManager<?,?> manager, String subscriptionName, org.symphonyoss.s2.fugue.counter.ICounter counter, org.symphonyoss.s2.fugue.counter.IBusyCounter busyCounter, long extensionFrequency, org.symphonyoss.s2.fugue.pipeline.ICloseableConsumer consumer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract IPullSubscriberContextgetContext()protected abstract RunnablegetNonIdleSubscriber()protected voidgetSomeMessages()protected voidgetSomeMessages(IPullSubscriberContext context)booleanisRunning()voidrun()protected voidrun(boolean runIfIdle)voidstop()
-
-
-
Constructor Detail
-
AbstractPullSubscriber
public AbstractPullSubscriber(AbstractPullSubscriberManager<?,?> manager, String subscriptionName, org.symphonyoss.s2.fugue.counter.ICounter counter, org.symphonyoss.s2.fugue.counter.IBusyCounter busyCounter, long extensionFrequency, org.symphonyoss.s2.fugue.pipeline.ICloseableConsumer consumer)
-
-
Method Detail
-
close
public void close()
-
getContext
protected abstract IPullSubscriberContext getContext() throws IOException
- Throws:
IOException
-
getNonIdleSubscriber
protected abstract Runnable getNonIdleSubscriber()
-
getSomeMessages
protected void getSomeMessages()
-
getSomeMessages
protected void getSomeMessages(IPullSubscriberContext context)
-
run
protected void run(boolean runIfIdle)
-
isRunning
public boolean isRunning()
-
stop
public void stop()
-
-