Interface ConnectionPool

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
JRTConnectionPool, MockConnection

public interface ConnectionPool extends AutoCloseable
Author:
hmusum
  • Method Details

    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • getCurrent

      Connection getCurrent()
    • switchConnection

      Connection switchConnection(Connection failingConnection)
      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()