code: public boolean isBroken() {
          final ReentrantLock lock = this.lock;
          lock.lock();
          try {
              return generation.broken;
          } finally {
              lock.unlock();
          }
      }
docs: Queries if this barrier is in a broken state.
  
  @return {@code true} if one or more parties broke out of this
  barrier due to interruption or timeout since
  construction or the last reset, or a barrier action
  failed due to an exception; {@code false} otherwise.