Package org.apereo.cas.util.io
Interface WatcherService
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
FileWatcherService,PathWatcherService
public interface WatcherService extends java.io.Closeable, java.lang.AutoCloseableThis isWatcherService.- Since:
- 6.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default voidclose()Close.static WatcherServicenoOp()No op watcher service.default voidstart(java.lang.String name)Start the watch.
-
-
-
Method Detail
-
noOp
static WatcherService noOp()
No op watcher service.- Returns:
- the watcher service
-
close
default void close()
Close.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
start
default void start(java.lang.String name)
Start the watch.- Parameters:
name- the name
-
-