int maxOpenConnections = getMaxOpenConnections();
if(maxOpenConnections > 0
&& openConnections > (maxOpenConnections * getContextValue(Integer.class, OPEN_CONNECTIONS_WARN_PERCENT)) / 100
&& _connectionCountWarningGiven.compareAndSet(false, true))
{
_broker.getEventLogger().message(new PortLogSubject(this),
PortMessages.CONNECTION_COUNT_WARN(openConnections,
getContextValue(Integer.class, OPEN_CONNECTIONS_WARN_PERCENT),
maxOpenConnections));
}
return openConnections;