Class 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
    • Method Detail

      • poll

        public org.uberfire.java.nio.file.WatchKey poll()
                                                 throws org.uberfire.java.nio.file.ClosedWatchServiceException
        Specified by:
        poll in interface org.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:
        poll in interface org.uberfire.java.nio.file.WatchService
        Throws:
        org.uberfire.java.nio.file.ClosedWatchServiceException
        org.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:
        take in interface org.uberfire.java.nio.file.WatchService
        Throws:
        org.uberfire.java.nio.file.ClosedWatchServiceException
        org.uberfire.java.nio.file.InterruptedException
      • isClose

        public boolean isClose()
        Specified by:
        isClose in interface org.uberfire.java.nio.file.WatchService
      • close

        public void close()
                   throws org.uberfire.java.nio.IOException
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.uberfire.java.nio.Closeable
        Throws:
        org.uberfire.java.nio.IOException
      • publish

        public void publish​(org.uberfire.java.nio.file.WatchKey wk)