code: public void setChannel(PrivateChannel channel) {
          if (this.channel != channel) {
              if (this.channel != null) {
                  ((Cleanupable) this.channel).cleanup();
              }
              this.channel = channel;
          }
      }
docs: Sets the private channel with the user.
  
  @param channel The channel to set.