Alibaba dubbo thread pool optimization

1.4.0
chen.ma 2 years ago
parent 80a9b311a2
commit af3de5c11b

@ -8,10 +8,9 @@
<version>${revision}</version> <version>${revision}</version>
</parent> </parent>
<artifactId>hippo4j-adapter-alibaba-dubbo</artifactId> <artifactId>hippo4j-adapter-alibaba-dubbo</artifactId>
<version>1.4.0-SNAPSHOT</version>
<properties> <properties>
<dubbo.version>3.0.5</dubbo.version> <alibaba-dubbo.version>2.6.12</alibaba-dubbo.version>
</properties> </properties>
<dependencies> <dependencies>
@ -20,13 +19,11 @@
<artifactId>hippo4j-adapter-base</artifactId> <artifactId>hippo4j-adapter-base</artifactId>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba/dubbo -->
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId> <artifactId>dubbo</artifactId>
<version>2.6.12</version> <version>${alibaba-dubbo.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>

@ -45,7 +45,7 @@ public class AlibabaDubboThreadPoolAdapter implements ThreadPoolAdapter, Applica
@Override @Override
public String mark() { public String mark() {
return "Dubbo"; return "AlibabaDubbo";
} }
@Override @Override

@ -10,7 +10,6 @@
<artifactId>hippo4j-spring-boot-starter-adapter-alibaba-dubbo</artifactId> <artifactId>hippo4j-spring-boot-starter-adapter-alibaba-dubbo</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>cn.hippo4j</groupId> <groupId>cn.hippo4j</groupId>
<artifactId>hippo4j-adapter-alibaba-dubbo</artifactId> <artifactId>hippo4j-adapter-alibaba-dubbo</artifactId>

@ -32,14 +32,14 @@ public class AlibabaDubboAdapterAutoConfiguration {
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
public ApplicationContextHolder simpleApplicationContextHolder () { public ApplicationContextHolder simpleApplicationContextHolder() {
return new ApplicationContextHolder(); return new ApplicationContextHolder();
} }
@Bean @Bean
@SuppressWarnings("all") @SuppressWarnings("all")
@ConditionalOnProperty(name = "dubbo.application.name") @ConditionalOnProperty(name = "dubbo.application.name")
public AlibabaDubboThreadPoolAdapter dubboThreadPoolAdapter (ApplicationContextHolder applicationContextHolder) { public AlibabaDubboThreadPoolAdapter dubboThreadPoolAdapter(ApplicationContextHolder applicationContextHolder) {
return new AlibabaDubboThreadPoolAdapter(); return new AlibabaDubboThreadPoolAdapter();
} }
} }

Loading…
Cancel
Save