public class JGitWatchService extends Object implements WatchService
Constructor and Description |
---|
JGitWatchService(String fsName,
Consumer<JGitWatchService> notifyClose) |
public JGitWatchService(String fsName, Consumer<JGitWatchService> notifyClose)
public WatchKey poll() throws ClosedWatchServiceException
poll
in interface WatchService
ClosedWatchServiceException
public WatchKey poll(long timeout, TimeUnit unit) throws ClosedWatchServiceException, InterruptedException
poll
in interface WatchService
ClosedWatchServiceException
InterruptedException
public WatchKey take() throws ClosedWatchServiceException, InterruptedException
take
in interface WatchService
ClosedWatchServiceException
InterruptedException
public boolean isClose()
isClose
in interface WatchService
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void publish(WatchKey wk)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.