[Improvement]Delete the getSession in the Registry interface (#10633)

This commit is contained in:
wjf 2022-06-29 11:20:52 +08:00 committed by GitHub
parent 7e7df1d8ff
commit 75581b7543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 15 deletions

View File

@ -43,6 +43,4 @@ public interface Registry extends Closeable {
boolean acquireLock(String key);
boolean releaseLock(String key);
Duration getSessionTimeout();
}

View File

@ -156,10 +156,6 @@ public class MysqlRegistry implements Registry {
return true;
}
@Override
public Duration getSessionTimeout() {
throw new UnsupportedOperationException("Not support session timeout at Mysql Registry");
}
@Override
public void close() {

View File

@ -232,11 +232,6 @@ public final class ZookeeperRegistry implements Registry {
return true;
}
@Override
public Duration getSessionTimeout() {
return properties.getSessionTimeout();
}
@Override
public void close() {
treeCacheMap.values().forEach(CloseableUtils::closeQuietly);

View File

@ -310,8 +310,4 @@ public class RegistryClient {
}
}
}
public Duration getSessionTimeout() {
return registry.getSessionTimeout();
}
}