Package com.yahoo.vespa.config
Interface ConnectionPool
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
JRTConnectionPool,MockConnection
- Author:
- hmusum
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetSize()switchConnection(Connection failingConnection) Switches to another (healthy, if possible) Connection instance.
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-
getCurrent
Connection getCurrent() -
switchConnection
Switches to another (healthy, if possible) Connection instance.getCurrent()will return this instance afterwards, which is also the return value.- Returns:
- a Connection
-
getSize
int getSize() -
connections
List<Connection> connections()
-