@Test public void testCantGetConnBundleForUninitalizedOrg() { try { this.r.getConnectionBundle(10); fail(); } catch (IllegalStateException e) { assertEquals("The ConnectionBundle for org id <10> has not been configured yet!", e.getMessage()); } }
@Nonnull @Override public synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier) { return getConnectionBundleImpl(this.orgIdToBundleMap, orgIdentifier); }
ConnectionPoolImpl implements ConnectionPool<T> { @Nonnull @Override public synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier) { return getConnectionBundleImpl(this.orgIdToBundleMap, orgIdentifier); } }
ConnectionPoolImpl implements ConnectionPool<T> { @Nonnull @Override public synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier) { return getConnectionBundleImpl(this.orgIdToBundleMap, orgIdentifier); } ConnectionPoolImpl(@Nonnull String partnerKey, MetricRegistry metricRegistry); }
ConnectionPoolImpl implements ConnectionPool<T> { @Nonnull @Override public synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier) { return getConnectionBundleImpl(this.orgIdToBundleMap, orgIdentifier); } ConnectionPoolImpl(@Nonnull String partnerKey, MetricRegistry metricRegistry); @Nonnull @Override synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier); @Nonnull @Override synchronized ConnectionBundle getSandboxConnectionBundle(@Nonnull T orgIdentifier); @Override synchronized void configureOrg(@Nonnull T orgId, @Nonnull String username, @Nonnull String password,
            int maxConcurrentApiCalls); @Override synchronized void configureSandboxOrg(@Nonnull T orgId, @Nonnull String username, @Nonnull String password,
            int maxConcurrentApiCalls); }
ConnectionPoolImpl implements ConnectionPool<T> { @Nonnull @Override public synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier) { return getConnectionBundleImpl(this.orgIdToBundleMap, orgIdentifier); } ConnectionPoolImpl(@Nonnull String partnerKey, MetricRegistry metricRegistry); @Nonnull @Override synchronized ConnectionBundle getConnectionBundle(@Nonnull T orgIdentifier); @Nonnull @Override synchronized ConnectionBundle getSandboxConnectionBundle(@Nonnull T orgIdentifier); @Override synchronized void configureOrg(@Nonnull T orgId, @Nonnull String username, @Nonnull String password,
            int maxConcurrentApiCalls); @Override synchronized void configureSandboxOrg(@Nonnull T orgId, @Nonnull String username, @Nonnull String password,
            int maxConcurrentApiCalls);  }