Package org.apache.pulsar.io.hdfs3.sink
Class HdfsSyncThread<V>
java.lang.Object
java.lang.Thread
org.apache.pulsar.io.hdfs3.sink.HdfsSyncThread<V>
- Type Parameters:
V-
- All Implemented Interfaces:
Runnable
A thread that runs in the background and acknowledges Records
after they have been written to disk.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionHdfsSyncThread(org.apache.hadoop.fs.Syncable stream, BlockingQueue<org.apache.pulsar.functions.api.Record<V>> unackedRecords, long syncInterval) -
Method Summary
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 Details
-
HdfsSyncThread
public HdfsSyncThread(org.apache.hadoop.fs.Syncable stream, BlockingQueue<org.apache.pulsar.functions.api.Record<V>> unackedRecords, long syncInterval)
-
-
Method Details
-
run
public void run() -
halt
- Throws:
IOExceptionInterruptedException
-