private ZooKeeperUpdatingPersistentDirectory(final String name, final ZooKeeperClientProvider provider, final Path stateFile, final String path) throws IOException, InterruptedException { this.provider = provider; this.path = path; this.entries = PersistentAtomicReference.create(stateFile, ENTRIES_TYPE, Suppliers.ofInstance(EMPTY_ENTRIES)); this.reactor = new DefaultReactor(name, new Update(), RETRY_INTERVAL_MILLIS); }
private ZooKeeperUpdatingPersistentDirectory(final String name, final ZooKeeperClientProvider provider, final Path stateFile, final String path) throws IOException, InterruptedException { this.provider = provider; this.path = path; this.entries = PersistentAtomicReference.create(stateFile, ENTRIES_TYPE, Suppliers.ofInstance(EMPTY_ENTRIES)); this.reactor = new DefaultReactor(name, new Update(), RETRY_INTERVAL_MILLIS); }