name.pachler.nio.file.impl
Class BSDPathWatchService

java.lang.Object
  extended by name.pachler.nio.file.WatchService
      extended by name.pachler.nio.file.impl.PathWatchService
          extended by name.pachler.nio.file.impl.BSDPathWatchService
All Implemented Interfaces:
java.io.Closeable

public class BSDPathWatchService
extends PathWatchService


Field Summary
 
Fields inherited from class name.pachler.nio.file.impl.PathWatchService
FLAG_ACCURATE, FLAG_FILTER_ENTRY_CREATE, FLAG_FILTER_ENTRY_DELETE, FLAG_FILTER_ENTRY_MODIFY, FLAG_FILTER_ENTRY_RENAME_FROM, FLAG_FILTER_ENTRY_RENAME_TO, FLAG_FILTER_KEY_INVALID, FLAG_WATCH_SUBTREE
 
Constructor Summary
BSDPathWatchService()
           
 
Method Summary
 void close()
           
 WatchKey poll()
           
 WatchKey poll(long timeout, java.util.concurrent.TimeUnit unit)
           
 PathWatchKey register(Path path, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier[] modifiers)
           
 boolean reset(PathWatchKey pathWatchKey)
           
 WatchKey take()
           
 
Methods inherited from class name.pachler.nio.file.impl.PathWatchService
checkAndCastToPathImpl, makeFlagMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSDPathWatchService

public BSDPathWatchService()
Method Detail

register

public PathWatchKey register(Path path,
                             WatchEvent.Kind<?>[] kinds,
                             WatchEvent.Modifier[] modifiers)
                      throws java.io.IOException
Specified by:
register in class PathWatchService
Throws:
java.io.IOException

reset

public boolean reset(PathWatchKey pathWatchKey)

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class WatchService
Throws:
java.io.IOException

poll

public WatchKey poll()
              throws java.lang.InterruptedException,
                     ClosedWatchServiceException
Specified by:
poll in class WatchService
Throws:
java.lang.InterruptedException
ClosedWatchServiceException

poll

public WatchKey poll(long timeout,
                     java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException,
                     ClosedWatchServiceException
Specified by:
poll in class WatchService
Throws:
java.lang.InterruptedException
ClosedWatchServiceException

take

public WatchKey take()
              throws java.lang.InterruptedException,
                     ClosedWatchServiceException
Specified by:
take in class WatchService
Throws:
java.lang.InterruptedException
ClosedWatchServiceException