}
catch (RejectedExecutionException e)
{
logger.warn("Execution was rejected by pool. Try to increase the pool size.");
// release resources if execution was rejected due to the pool size
connectionHandler.release();
}
}
else
{
connectionHandler = getConnectionHandler(connection, channelName);