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