Class AbstractSource<V>
java.lang.Object
org.apache.pulsar.io.core.PushSource<V>
org.apache.pulsar.io.flume.source.AbstractSource<V>
- All Implemented Interfaces:
AutoCloseable,org.apache.pulsar.io.core.Source<V>
- Direct Known Subclasses:
StringSource
public abstract class AbstractSource<V>
extends org.apache.pulsar.io.core.PushSource<V>
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
consume, getQueueLength, read
-
Field Details
-
thread
-
running
protected volatile boolean running -
handler
-
-
Constructor Details
-
AbstractSource
public AbstractSource()
-
-
Method Details
-
open
-
extractValue
-
start
protected void start() -
close
- Throws:
InterruptedException
-
process
protected void process()
-