Package org.oddjob.io
Class PathWatchEvents
java.lang.Object
org.oddjob.io.PathWatchEvents
Watch a directory for files and changes.
- Author:
- rob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RestoredoStartWithException(Consumer<? super Path> consumer) getDir()getKinds()getTo()booleanvoidvoidvoidvoidsetNewOnly(boolean newOnly) voidSet the out bound destination.voidstart()Start the service.voidstop()Stop executing.
-
Constructor Details
-
PathWatchEvents
public PathWatchEvents()
-
-
Method Details
-
start
public void start()Description copied from interface:ServiceStart the service. -
stop
public void stop()Description copied from interface:StoppableStop executing. This method should not return until the Stoppable has actually stopped. -
doStartWithException
- Throws:
IOException
-
getDir
-
setDir
-
getKinds
-
setKinds
-
getFilter
-
setFilter
-
getTo
-
setTo
Description copied from interface:OutboundSet the out bound destination. -
isNewOnly
public boolean isNewOnly() -
setNewOnly
public void setNewOnly(boolean newOnly)
-