io.tarantool.driver.core.connection.TarantoolConnectionManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.core.connection;
import io.tarantool.driver.api.connection.TarantoolConnection;
import java.util.concurrent.CompletableFuture;
/**
* Manages the Tarantool server connections lifecycle. Maintains multiple connections. Once a connection is lost,
* a connection procedure is performed.
*
* @author Alexey Kuzin
*/
public interface TarantoolConnectionManager extends AutoCloseable {
/**
* Get an established connection according to the order provided by specified connection selection strategy. If the
* connection procedure hasn't been performed yet, starts it.
*
* @return a future with next connection in order
*/
CompletableFuture getConnection();
/**
* Starts the process of establishing lacking connections to each host
*
* @return returns true if the establishing process has been started, else false
*/
boolean refresh();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy