Class DefaultWatchThread

java.lang.Object
io.micronaut.scheduling.io.watch.DefaultWatchThread
All Implemented Interfaces:
LifeCycle<DefaultWatchThread>, Closeable, AutoCloseable
Direct Known Subclasses:
MacOsWatchThread

@Requires(property="micronaut.io.watch.paths") @Requires(property="micronaut.io.watch.enabled",value="true",defaultValue="false") @Requires(condition=FileWatchCondition.class) @Requires(notEnv={"function","android"}) @Requires(beans=java.nio.file.WatchService.class) @Parallel @Singleton public class DefaultWatchThread extends Object implements LifeCycle<DefaultWatchThread>
Simple watch service that simply stops the server if any changes occur. It is up to an external tool to watch the server.

For example with Gradle you use ./gradlew run --continuous

Since:
1.1.0
Author:
graemerocher