tries to acquire a permit and returns the result without blocking.
Caller is expected to take appropriate action based on the results.
true when the permit was acquired
public void acquireSocketPermit()
First attempt to acquire a permit without blocking. If unable to get a
permit, log the MaxOpenSockets has been reached and block until the
permit is acquired. Also set the health state to warn. Once the lock
permit is acquired log the fact that we are accepting connections again
and set the health state to OK.