Skip to content

Instantly share code, notes, and snippets.

@ederign

ederign/publishEvents.java

Last active Sep 28, 2018
Embed
What would you like to do?
public void publishEvents(String fsName,
Path watchable,
List<WatchEvent<?>> elist,
boolean broadcastEvents) {
JGitFileSystemWatchServices watchService = fsWatchServices.get(fsName);
if (watchService == null) {
return;
}
watchService.publishEvents(watchable,
elist);
if (shouldIBroadcast(broadcastEvents)) {
jGitEventsBroadcast.broadcast(fsName,
watchable,
elist);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment