fixed timer creation in remote context
package com.orientechnologies.orient.core.db;
import static com.orientechnologies.orient.client.remote.OStorageRemote.ADDRESS_SEPARATOR;
-import static com.orientechnologies.orient.core.config.OGlobalConfiguration.CLIENT_CHANNEL_IDLE_CLOSE;
import static com.orientechnologies.orient.core.config.OGlobalConfiguration.NETWORK_SOCKET_RETRY;
import com.orientechnologies.common.exception.OException;
@@ -69,9 +68,7 @@ public class OrientDBRemote implements OrientDBInternal {
this.hosts = hosts;
this.orient = orient;
this.configurations = configurations != null ? configurations : OrientDBConfig.defaultConfig();
- if (this.configurations.getConfigurations().getValueAsBoolean(CLIENT_CHANNEL_IDLE_CLOSE)) {
- timer = new Timer("Client autoclose timer", true);
- }
+ timer = new Timer("Remote background operations timer", true);
connectionManager =
new ORemoteConnectionManager(this.configurations.getConfigurations(), timer);
orient.addOrientDB(this);
