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 WatchServiceClosedWatchServiceExceptionpublic WatchKey poll(long timeout, TimeUnit unit) throws ClosedWatchServiceException, InterruptedException
poll in interface WatchServiceClosedWatchServiceExceptionInterruptedExceptionpublic WatchKey take() throws ClosedWatchServiceException, InterruptedException
take in interface WatchServiceClosedWatchServiceExceptionInterruptedExceptionpublic boolean isClose()
isClose in interface WatchServicepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void publish(WatchKey wk)
Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.