@@ -43,6 +43,4 @@ public interface Registry extends Closeable {
boolean acquireLock(String key);
boolean releaseLock(String key);
-
- Duration getSessionTimeout();
}
@@ -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() {
@@ -232,11 +232,6 @@ public final class ZookeeperRegistry implements Registry {
- return properties.getSessionTimeout();
treeCacheMap.values().forEach(CloseableUtils::closeQuietly);
@@ -310,8 +310,4 @@ public class RegistryClient {
- return registry.getSessionTimeout();