public class WatcherConfig
extends java.lang.Object
Watcher and WatcherData behavior. Initial values are read from system properties, if available.
Some properties allow reassigning their value at runtime.| Modifier and Type | Field and Description |
|---|---|
static long |
delayMilliseconds
Time to wait before reporting the first watcher status, in milliseconds.
|
static java.lang.String |
name
Logger name where watcher log messages are written to.
|
static long |
periodMilliseconds
Time period to wait before reporting further watcher status, in milliseconds.
|
| Constructor and Description |
|---|
WatcherConfig() |
public static java.lang.String name
public static long delayMilliseconds
slf4jtoys.watcher.delay at
application startup and defaults to 1 minute. The number represents a long integer that represents milliseconds. The system property
allows the number suffixed with 'ms', 's', 'm' and 'h' to represent milliseconds, seconds, minutes and hours.You may assign a new value at
runtime, but if the default watcher is already running, you need to restart it.public static long periodMilliseconds
slf4jtoys.watcher.period at application startup and defaults to 10 minutes.
The number represents a long integer that represents milliseconds. The system property allows the number suffixed with 'ms', 's', 'm' and 'h'
to represent milliseconds, seconds, minutes and hours. You may assign a new value at runtime, but if the default watcher is already running,
you need to restart it.