Package com.yahoo.vespa.config
Interface ConnectionPool
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
JRTConnectionPool
,MockConnection
- Author:
- hmusum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getSize()
switchConnection
(Connection failingConnection) Switches to another (healthy, if possible) Connection instance.
-
Method Details
-
close
void close()- Specified by:
close
in 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()
-