public ConsumerConfig<T> setCheck(boolean check) {
        this.check = check;
        return this;
    }
Sets heartbeatPeriod.

@param heartbeatPeriod the heartbeatPeriod
@return the heartbeatPeriod
core/api/src/main/java/com/alipay/sofa/rpc/config/ConsumerConfig.java