dubbo source code reading notes

class MonitorListener implements Runnable {

private String key;

public MonitorListener(String key) {
this.key = key;

public void run() {
try {
CompletableFuture<Monitor> completableFuture = AbstractMonitorFactory.FUTURES.get(key);
AbstractMonitorFactory.MONITORS.put(key, completableFuture.get());
} catch (InterruptedException e) {
logger.warn("Thread was interrupted unexpectedly, monitor will never be got.");
} catch (ExecutionException e) {
logger.warn("Create monitor failed, monitor data will not be collected until you fix this problem. ", e);

Guess you like

Origin www.cnblogs.com/cococc/p/12113562.html