Package org.apache.pulsar.io.file
Class FileConsumerThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.pulsar.io.file.FileConsumerThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class FileConsumerThread extends java.lang.ThreadWorker thread that consumes the contents of the files and publishes them to a Pulsar topic.
-
-
Constructor Summary
Constructors Constructor Description FileConsumerThread(org.apache.pulsar.io.core.PushSource<byte[]> source, java.util.concurrent.BlockingQueue<java.io.File> workQueue, java.util.concurrent.BlockingQueue<java.io.File> inProcess, java.util.concurrent.BlockingQueue<java.io.File> recentlyProcessed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
FileConsumerThread
public FileConsumerThread(org.apache.pulsar.io.core.PushSource<byte[]> source, java.util.concurrent.BlockingQueue<java.io.File> workQueue, java.util.concurrent.BlockingQueue<java.io.File> inProcess, java.util.concurrent.BlockingQueue<java.io.File> recentlyProcessed)
-
-