diff --git a/hetu-datacenter/src/main/java/io/hetu/core/plugin/datacenter/DataCenterConfig.java b/hetu-datacenter/src/main/java/io/hetu/core/plugin/datacenter/DataCenterConfig.java index 175271ecf..2930527ff 100644 --- a/hetu-datacenter/src/main/java/io/hetu/core/plugin/datacenter/DataCenterConfig.java +++ b/hetu-datacenter/src/main/java/io/hetu/core/plugin/datacenter/DataCenterConfig.java @@ -117,12 +117,26 @@ public class DataCenterConfig private int maxIdleConnections = DEFAULT_MAX_IDLE_CONNECTIONS; + private String updateThreshold = "1m"; + @NotNull public URI getConnectionUrl() { return connectionUrl; } + public String getUpdateThreshold() + { + return updateThreshold; + } + + @Config("hetu.dc.catalog.update.threshold") + public DataCenterConfig setUpdateThreshold(String updateThreshold) + { + this.updateThreshold = updateThreshold; + return this; + } + /** * Set connection url, it is remote data center url. *