Class WatchServiceListener.Builder
java.lang.Object
ninja.leaping.configurate.reference.WatchServiceListener.Builder
- Enclosing class:
- WatchServiceListener
public static class WatchServiceListener.Builder extends Object
Set the parameters needed to create a 
WatchServiceListener. All params are optional and defaults will be
 used if no values are specified.- 
Method SummaryModifier and Type Method Description WatchServiceListenerbuild()Create a new listener, using default values for any unset parameters.WatchServiceListener.BuildersetFileSystem(FileSystem system)Set the filesystem expected to be used for paths.WatchServiceListener.BuildersetTaskExecutor(Executor executor)Set the executor that will be used to execute tasks queued based on received events.WatchServiceListener.BuildersetThreadFactory(ThreadFactory factory)Set the thread factory that will be used to create the polling thread for this watch service
- 
Method Details- 
setThreadFactorySet the thread factory that will be used to create the polling thread for this watch service- Parameters:
- factory- The thread factory to create the deamon thread
- Returns:
- this
 
- 
setTaskExecutorSet the executor that will be used to execute tasks queued based on received events. By default, thecommon poolis used.- Parameters:
- executor- The executor to use
- Returns:
- this
 
- 
setFileSystemSet the filesystem expected to be used for paths. A separateWatchServiceListenershould be created to listen to events on a different file system.- Parameters:
- system- The file system to use.
- Returns:
- this
 
- 
buildCreate a new listener, using default values for any unset parameters.- Returns:
- A newly created executor
- Throws:
- IOException- if thrown by- WatchServiceListener's constructor
 
 
-