notifyInterceptors(state.value());
  public void discard_requests(boolean wait_for_completion)                        throws AdapterInactive  {    if (state != State.INACTIVE)      state = State.DISCARDING;    else      throw new AdapterInactive();    if (wait_for_completion)      waitForIdle();  }