add Executors

(cherry picked from commit 3a1a8c7d71)
pull/2597/head
lixiaoshuang 3 years ago committed by chengpu.rzh
parent b13ee0e42e
commit 07a5901043

@ -17,6 +17,7 @@
package com.alibaba.cloud.examples.example;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import com.alibaba.cloud.commons.lang.StringUtils;
import com.alibaba.cloud.nacos.NacosConfigManager;
@ -118,7 +119,7 @@ public class DockingInterfaceExample {
configService.addListener(dataId, group, new Listener() {
@Override
public Executor getExecutor() {
return null;
return Executors.newSingleThreadExecutor();
}
@Override

Loading…
Cancel
Save