CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/LLDatabaseConnection.java
2020-12-07 22:15:18 +01:00

27 lines
722 B
Java

package it.cavallium.dbengine.database;
import it.cavallium.dbengine.database.analyzer.TextFieldsAnalyzer;
import java.io.IOException;
import java.time.Duration;
import java.util.List;
public interface LLDatabaseConnection {
void connect() throws IOException;
LLKeyValueDatabase getDatabase(String name, List<Column> columns, boolean lowMemory) throws IOException;
LLLuceneIndex getLuceneIndex(String name,
int instancesCount,
TextFieldsAnalyzer textFieldsAnalyzer,
Duration queryRefreshDebounceTime,
Duration commitDebounceTime,
boolean lowMemory) throws IOException;
void disconnect() throws IOException;
void ping() throws IOException;
double getMediumLatencyMillis() throws IOException;
}