code: private void updateStreamState(StreamState state) {
          this.state = state;
          if (StreamState.CLOSED.equals(state)) {
              setCloseTime(System.currentTimeMillis());
              muxLink.closeStream(this);
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "current stream state for stream " + this.myID + " : " + this.state);
          }
      }
docs: Update the stream state and provide logging, if enabled
  
  @param state