Junjie
2 天以前 63b01db83d9aad8a15276b4236a9a22e4aeef065
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.zy.ai.service;
 
import com.zy.ai.domain.autotune.AutoTuneControlModeSnapshot;
 
public interface AutoTuneControlModeService {
 
    AutoTuneControlModeSnapshot currentMode();
 
    default boolean isAnalysisOnly() {
        AutoTuneControlModeSnapshot snapshot = currentMode();
        return snapshot == null || Boolean.TRUE.equals(snapshot.getAnalysisOnly());
    }
}