/** * Gets the client resource from the pool. * * @param alfrescoHost String * @param alfrescoPort int * @param alfrescoPortSSL int * @return SOLRAPIClient */ private SOLRAPIClient getCachedClient(String alfrescoHost, int alfrescoPort, int alfrescoPortSSL) { String key = constructKey(alfrescoHost, alfrescoPort, alfrescoPortSSL); return clientsPerAlfresco.get(key); }
/** * Sets the client in the resource pool. * * @param alfrescoHost String * @param alfrescoPort int * @param alfrescoPortSSL int * @param client SOLRAPIClient */ private void setCachedClient(String alfrescoHost, int alfrescoPort, int alfrescoPortSSL, SOLRAPIClient client) { String key = constructKey(alfrescoHost, alfrescoPort, alfrescoPortSSL); clientsPerAlfresco.put(key, client); }