PathWatcherThread

public class PathWatcherThread implements Runnable

Class PathWatcherThread. Provides pathwatcherthread functionality for the Hytale server.

java.lang.Object > PathWatcherThread

Field Summary

key

final WatchKey key

Field key.

directory

final Path directory

Field directory.

kind

final WatchEvent.Kind kind

Field kind.

pathEvent

final WatchEvent pathEvent

Field pathEvent.

path

final Path path

Field path.

keys

final WatchKey keys

Field keys.

modifiers

final WatchEvent.Modifier[] modifiers

Field modifiers.

Method Detail

PathWatcherThread

public public PathWatcherThread (final BiConsumer consumer)

Method PathWatcherThread.

Parameters:
final BiConsumer consumer

Thread

public new Thread (this, "PathWatcher")

Method Thread.

Parameters:
this this
"PathWatcher" "PathWatcher"

run

final void run ()

Method run.

events

public queued events (512)

Method events.

Parameters:
512 512

start

public void start ()

Method start.

shutdown

public void shutdown ()

Method shutdown.

addPath

public void addPath (Path path)

Method addPath.

Parameters:
Path path

watchPath

private void watchPath (@Nonnull final Path path)

Method watchPath.

Parameters:
@Nonnull final Path path