Class AbstractSource<V>
java.lang.Object
org.apache.pulsar.io.core.AbstractPushSource<T>
org.apache.pulsar.io.core.PushSource<V>
org.apache.pulsar.io.flume.source.AbstractSource<V>
- All Implemented Interfaces:
AutoCloseable,Source<V>
- Direct Known Subclasses:
StringSource
A Simple abstract source class for flume to pulsar.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Thread.UncaughtExceptionHandlerprotected booleanprotected Thread -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.pulsar.io.core.PushSource
readMethods inherited from class org.apache.pulsar.io.core.AbstractPushSource
consume, getQueueLength, notifyError, readNext
-
Field Details
-
thread
-
running
protected volatile boolean running -
handler
-
-
Constructor Details
-
AbstractSource
public AbstractSource()
-
-
Method Details
-
open
- Throws:
Exception
-
extractValue
-
start
protected void start() -
close
- Throws:
InterruptedException
-
process
protected void process()
-