static void flushAndClearRecursive()

in simplestore/src/main/java/com/uber/simplestore/impl/SimpleStoreFactory.java [90:99]


  static void flushAndClearRecursive(SimpleStoreImpl store) {
    synchronized (namespacesLock) {
      store.failQueueThenRun(new StoreClosedException("deleteAllNow"), store::clearCache);
      List<SimpleStoreImpl> children = getOpenChildren(store.getNamespace());
      for (SimpleStoreImpl child : children) {
        child.failQueueThenRun(new StoreClosedException("parent deleteAllNow"), child::clearCache);
      }
      store.moveAway();
    }
  }