Interface ConnectionSelectionStrategy
-
public interface ConnectionSelectionStrategy
Implementations of this class contain an algorithm and maintain the necessary state for selecting the next available connection from the supplied set of connections
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TarantoolConnection
next()
Provide the next available connection from the underlying pool of connections
-
-
-
Method Detail
-
next
TarantoolConnection next() throws NoAvailableConnectionsException
Provide the next available connection from the underlying pool of connections- Returns:
- an established connection
- Throws:
NoAvailableConnectionsException
- if no connections exist or all connections are not usable
-
-