public static DataSyncEnum acquireByName(final String name) {
        return Arrays.stream(DataSyncEnum.values())
                .filter(e -> e.getName().equals(name)).findFirst()
                .orElse(DataSyncEnum.HTTP);
    }
Acquire by name data sync enum.

@param name the name
@return the data sync enum
shenyu-common/src/main/java/org/apache/shenyu/common/enums/DataSyncEnum.java