public class WatcherConfig
extends java.lang.Object
Watcher and WatcherData behavior.
Initial values are read from system properties at application startup, if available.
They may be assigned at application startup, before calling any Watcher methods.
Some properties allow reassigning their values later at runtime.| Modifier and Type | Field and Description |
|---|---|
static boolean |
dataIncludeUuid |
static java.lang.String |
dataPrefix |
static java.lang.String |
dataSuffix |
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 java.lang.String dataPrefix
public static java.lang.String dataSuffix
public static boolean dataIncludeUuid
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.