public class FileWatcher extends Object
Constructor and Description |
---|
FileWatcher(Path filePath,
Runnable updatedHandler,
Consumer<Throwable> errorHandler,
MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
static long |
getPollPeriod() |
static TimeUnit |
getPollPeriodUnits() |
static ScheduledExecutorService |
getScheduler() |
boolean |
isRunning() |
static void |
setPollPeriod(long pollPeriod) |
static void |
setPollPeriodUnits(TimeUnit pollPeriodUnits) |
FileWatcher |
setRunning(boolean running) |
public static ScheduledExecutorService getScheduler()
public boolean isRunning()
public FileWatcher setRunning(boolean running)
public static long getPollPeriod()
public static void setPollPeriod(long pollPeriod)
public static TimeUnit getPollPeriodUnits()
public static void setPollPeriodUnits(TimeUnit pollPeriodUnits)
Copyright © 2022. All rights reserved.