All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tarantool.driver.ConnectionSelectionStrategy Maven / Gradle / Ivy

Go to download

Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework

There is a newer version: 0.14.0
Show newest version
package io.tarantool.driver;

import io.tarantool.driver.core.TarantoolConnection;
import io.tarantool.driver.exceptions.NoAvailableConnectionsException;

/**
 * Implementations of this class contain an algorithm and maintain the necessary state for selecting
 * the next available connection from the supplied set of connections
 *
 * @author Sergey Volgin
 * @author Alexey Kuzin
 */
public interface ConnectionSelectionStrategy {
    /**
     * Provide the next available connection from the underlying pool of connections
     * @return an established connection
     * @throws NoAvailableConnectionsException if no connections exist or all connections are not usable
     */
    TarantoolConnection next() throws NoAvailableConnectionsException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy