com.vesoft.nebula.driver.graph.net.Connection Maven / Gradle / Ivy
The newest version!
package com.vesoft.nebula.driver.graph.net;
import com.vesoft.nebula.driver.graph.data.HostAddress;
import com.vesoft.nebula.driver.graph.exception.IOErrorException;
import java.io.Serializable;
public abstract class Connection implements Serializable {
private static final long serialVersionUID = -8425216612015802331L;
protected HostAddress serverAddr = null;
public HostAddress getServerAddress() {
return this.serverAddr;
}
public abstract void open(HostAddress address, long connectTimeout, long requestTimeout)
throws IOErrorException;
public abstract void close();
public abstract boolean ping(long sessionID, long timeoutMs) throws IOErrorException;
}