Package org.uberfire.java.nio.fs.jgit.ws
Class JGitWatchService
- java.lang.Object
-
- org.uberfire.java.nio.fs.jgit.ws.JGitWatchService
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.uberfire.java.nio.Closeable,org.uberfire.java.nio.file.WatchService
public class JGitWatchService extends Object implements org.uberfire.java.nio.file.WatchService
-
-
Constructor Summary
Constructors Constructor Description JGitWatchService(String fsName, Consumer<JGitWatchService> notifyClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisClose()org.uberfire.java.nio.file.WatchKeypoll()org.uberfire.java.nio.file.WatchKeypoll(long timeout, TimeUnit unit)voidpublish(org.uberfire.java.nio.file.WatchKey wk)org.uberfire.java.nio.file.WatchKeytake()StringtoString()
-
-
-
Constructor Detail
-
JGitWatchService
public JGitWatchService(String fsName, Consumer<JGitWatchService> notifyClose)
-
-
Method Detail
-
poll
public org.uberfire.java.nio.file.WatchKey poll() throws org.uberfire.java.nio.file.ClosedWatchServiceException- Specified by:
pollin interfaceorg.uberfire.java.nio.file.WatchService- Throws:
org.uberfire.java.nio.file.ClosedWatchServiceException
-
poll
public org.uberfire.java.nio.file.WatchKey poll(long timeout, TimeUnit unit) throws org.uberfire.java.nio.file.ClosedWatchServiceException, org.uberfire.java.nio.file.InterruptedException- Specified by:
pollin interfaceorg.uberfire.java.nio.file.WatchService- Throws:
org.uberfire.java.nio.file.ClosedWatchServiceExceptionorg.uberfire.java.nio.file.InterruptedException
-
take
public org.uberfire.java.nio.file.WatchKey take() throws org.uberfire.java.nio.file.ClosedWatchServiceException, org.uberfire.java.nio.file.InterruptedException- Specified by:
takein interfaceorg.uberfire.java.nio.file.WatchService- Throws:
org.uberfire.java.nio.file.ClosedWatchServiceExceptionorg.uberfire.java.nio.file.InterruptedException
-
isClose
public boolean isClose()
- Specified by:
isClosein interfaceorg.uberfire.java.nio.file.WatchService
-
close
public void close() throws org.uberfire.java.nio.IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.uberfire.java.nio.Closeable- Throws:
org.uberfire.java.nio.IOException
-
publish
public void publish(org.uberfire.java.nio.file.WatchKey wk)
-
-