code: public final boolean isIdle(IdleStatus status) {
          if (status == IdleStatus.BOTH_IDLE) {
              return idleCountForBoth.get() > 0;
          }
  
          if (status == IdleStatus.READER_IDLE) {
              return idleCountForRead.get() > 0;
          }
  
          if (status == IdleStatus.WRITER_IDLE) {
              return idleCountForWrite.get() > 0;
          }
  
          throw new IllegalArgumentException("Unknown idle status: " + status);
      }
docs: {@inheritDoc}