docs: public void setInterests(int opsToAdd, int opsToRemove) {
          // must be done atomically with changes to m_running
          synchronized(m_lock) {
              int oldInterestOps = m_interestOps;
              m_interestOps = (m_interestOps | opsToAdd) & (~opsToRemove);
  
              if (oldInterestOps != m_interestOps && !m_running) {
                  /*
                   * If this is a write, optimistically assume the write
                   * will succeed and try it without using the selector
                   */
                  m_network.addToChangeList(this, (opsToAdd & SelectionKey.OP_WRITE) != 0);
              }
          }
      }