public void setWeight(final int weight) {
        this.weight = weight;
    }
Sets the weight.

@param weight weight
shenyu-common/src/main/java/org/apache/shenyu/common/dto/convert/selector/DubboUpstream.java