@ConfigurationProperties(value="micronaut.io.watch") @Requires(property="micronaut.io.watch.paths") public class FileWatchConfiguration extends Object implements Toggleable
| Modifier and Type | Field and Description | 
|---|---|
| static String | ENABLEDSetting to enable and disable server watch. | 
| static String | PATHSThe watch paths. | 
| static String | PREFIXThe prefix to use to configure the watch service. | 
| static String | RESTARTSetting to enable and disable restart. | 
| Constructor and Description | 
|---|
| FileWatchConfiguration() | 
| Modifier and Type | Method and Description | 
|---|---|
| Duration | getCheckInterval()The interval to wait between checks. | 
| List<Path> | getPaths()The paths to watch. | 
| boolean | isEnabled() | 
| boolean | isRestart()Should the server be shutdown when a watch event fires. | 
| void | setCheckInterval(Duration checkInterval)Sets the interval to wait between file watch polls. | 
| void | setEnabled(boolean enabled)Whether watch is enabled. | 
| void | setPaths(List<Path> paths)Sets the watch paths to use. | 
| void | setRestart(boolean restart)Set whether restart is enabled. | 
public static final String PREFIX
public static final String PATHS
public static final String ENABLED
public static final String RESTART
public boolean isEnabled()
isEnabled in interface Toggleablepublic boolean isRestart()
gradle run --continuous or Kubernetes replication controller is required to restart the container.public void setRestart(boolean restart)
restart - True if restart is to be enabledisRestart()public void setEnabled(boolean enabled)
enabled - True if is enabledpublic void setPaths(@Nonnull List<Path> paths)
paths - The watch paths@Nonnull public Duration getCheckInterval()