Class JRTConnectionPool

  • All Implemented Interfaces:
    ConnectionPool

    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 #setNewCurrentConnection} (since the connection is chosen randomly, it might end up using the same connection again, and it will always do so if there is only one source). The current connection is available with getCurrent(). When calling setError(Connection, int), {#link #setNewCurrentConnection} will always be called.
    Author:
    Gunnar Gauslaa Bergem, hmusum
    • Constructor Detail

      • JRTConnectionPool

        public JRTConnectionPool​(ConfigSourceSet sourceSet)
      • JRTConnectionPool

        public JRTConnectionPool​(java.util.List<java.lang.String> addresses)