mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(LocalRunnerClient): rename LocalWatchServiceRegistry
This commit is contained in:
@@ -325,7 +325,7 @@ public class LocalRunnerClient extends RunnerClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private WatchServiceBuild registerWatchService(Path path) {
|
private WatchServiceBuild registerWatchService(Path path) {
|
||||||
return new LocalWatchServiceHelper(path, watchService, executor);
|
return new LocalWatchServiceRegistry(path, watchService, executor);
|
||||||
}
|
}
|
||||||
|
|
||||||
private interface WatchServiceBuild {
|
private interface WatchServiceBuild {
|
||||||
@@ -350,7 +350,7 @@ public class LocalRunnerClient extends RunnerClient {
|
|||||||
void load(Path path);
|
void load(Path path);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class LocalWatchServiceHelper implements WatchServiceBuild {
|
private static class LocalWatchServiceRegistry implements WatchServiceBuild {
|
||||||
|
|
||||||
private final Map<WatchEvent.Kind<?>, WatchEventHandler> handlers = new HashMap<>();
|
private final Map<WatchEvent.Kind<?>, WatchEventHandler> handlers = new HashMap<>();
|
||||||
private final Path path;
|
private final Path path;
|
||||||
@@ -358,7 +358,7 @@ public class LocalRunnerClient extends RunnerClient {
|
|||||||
private final ExecutorService executor;
|
private final ExecutorService executor;
|
||||||
private WatchInitLoader initLoader;
|
private WatchInitLoader initLoader;
|
||||||
|
|
||||||
private LocalWatchServiceHelper(Path path, WatchService watchService, ExecutorService executor) {
|
private LocalWatchServiceRegistry(Path path, WatchService watchService, ExecutorService executor) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.watchService = watchService;
|
this.watchService = watchService;
|
||||||
this.executor = executor;
|
this.executor = executor;
|
||||||
|
|||||||
Reference in New Issue
Block a user