Class PathWatcherThread
java.lang.Object
com.hypixel.hytale.server.core.asset.monitor.PathWatcherThread
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiConsumer<Path, EventKind> static final booleanstatic final com.hypixel.hytale.logger.HytaleLoggerprivate final WatchServiceprivate final Threadstatic final WatchEvent.Kind<?>[] -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
public static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
HAS_FILE_TREE_SUPPORT
public static final boolean HAS_FILE_TREE_SUPPORT -
WATCH_EVENT_KINDS
-
consumer
-
thread
-
service
-
registered
-
-
Constructor Details
-
PathWatcherThread
- Throws:
IOException
-
-
Method Details
-
run
public final void run() -
start
public void start() -
shutdown
public void shutdown() -
addPath
- Throws:
IOException
-
watchPath
- Throws:
IOException
-