Class JRTConnectionPool

  • All Implemented Interfaces:
    ConnectionPool, java.lang.AutoCloseable

    public class JRTConnectionPool
    extends java.lang.Object
    implements ConnectionPool
    A pool of JRT connections to a config source (either a config server or a config proxy). The current connection is chosen randomly when calling {#link switchConnection()} (it will continue to use the same connection if there is only one source). The current connection is available with getCurrent(). When calling setError(Connection, int), switchConnection() will always be called.
    Author:
    Gunnar Gauslaa Bergem, hmusum