NettyProperties.java (spring-boot-2.7.3) | : | NettyProperties.java (spring-boot-2.7.4) | ||
---|---|---|---|---|
/* | /* | |||
* Copyright 2012-2021 the original author or authors. | * Copyright 2012-2022 the original author or authors. | |||
* | * | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | * You may obtain a copy of the License at | |||
* | * | |||
* https://www.apache.org/licenses/LICENSE-2.0 | * https://www.apache.org/licenses/LICENSE-2.0 | |||
* | * | |||
* Unless required by applicable law or agreed to in writing, software | * Unless required by applicable law or agreed to in writing, software | |||
* distributed under the License is distributed on an "AS IS" BASIS, | * distributed under the License is distributed on an "AS IS" BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
skipping to change at line 33 | skipping to change at line 33 | |||
* <p> | * <p> | |||
* These properties apply globally to the Netty library, used as a client or a s erver. | * These properties apply globally to the Netty library, used as a client or a s erver. | |||
* | * | |||
* @author Brian Clozel | * @author Brian Clozel | |||
* @since 2.5.0 | * @since 2.5.0 | |||
*/ | */ | |||
@ConfigurationProperties(prefix = "spring.netty") | @ConfigurationProperties(prefix = "spring.netty") | |||
public class NettyProperties { | public class NettyProperties { | |||
/** | /** | |||
* Level of leak detection for reference-counted buffers. | * Level of leak detection for reference-counted buffers. If not configur | |||
ed via | ||||
* 'ResourceLeakDetector.setLevel' or the 'io.netty.leakDetection.level' | ||||
system | ||||
* property, default to 'simple'. | ||||
*/ | */ | |||
private LeakDetection leakDetection = LeakDetection.SIMPLE; | private LeakDetection leakDetection; | |||
public LeakDetection getLeakDetection() { | public LeakDetection getLeakDetection() { | |||
return this.leakDetection; | return this.leakDetection; | |||
} | } | |||
public void setLeakDetection(LeakDetection leakDetection) { | public void setLeakDetection(LeakDetection leakDetection) { | |||
this.leakDetection = leakDetection; | this.leakDetection = leakDetection; | |||
} | } | |||
public enum LeakDetection { | public enum LeakDetection { | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 7 lines changed or added |