add a property named "hetu.dc.catalogs.update.threshold" into dc configuration file, this property is used in method CatalogConnectorStore.getDCCatalogUpdateThreshold.

This commit is contained in:
luren 2020-07-28 20:04:37 +08:00
parent 3423829ac7
commit 0f021a8f1a
1 changed files with 14 additions and 0 deletions

View File

@ -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.
*