/**
* Returns the number of select keepalives available.
*/
public int getFreeKeepaliveSelect()
{
AbstractSelectManager selectManager = getSelectManager();
if (selectManager != null)
return selectManager.getFreeKeepalive();
else
return Integer.MAX_VALUE / 2;
}