Package org.apache.hadoop.hbase.io
Class FileChangeWatcher.WatcherThread
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.io.FileChangeWatcher.WatcherThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
- FileChangeWatcher
Inner class that implements the watcher thread logic.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescription(package private) final Consumer<WatchEvent<?>>
private static final String
(package private) final WatchService
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionWatcherThread
(String threadNameSuffix, WatchService watchService, Consumer<WatchEvent<?>> callback) -
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
-
Field Details
-
THREAD_NAME_PREFIX
- See Also:
-
watchService
-
callback
-
-
Constructor Details
-
WatcherThread
WatcherThread(String threadNameSuffix, WatchService watchService, Consumer<WatchEvent<?>> callback)
-
-
Method Details