boolean isKeepaliveAllowed(long connectionStartTime){
  if (!_lifecycle.isActive()) {
    return false;
  }
 else   if (connectionStartTime + _keepaliveTimeMax < CurrentTime.currentTime()) {
    return false;
  }
 else   if (_keepaliveMax <= _keepaliveAllocateCount.get()) {
    return false;
  }
 else {
    return true;
  }
}

boolean isKeepaliveAllowed ( long connectionStartTime ) { if ( ! _lifecycle . isActive ( ) ) { return false ; } else if ( connectionStartTime + _keepaliveTimeMax < CurrentTime . currentTime ( ) ) { return false ; } else if ( _keepaliveMax <= _keepaliveAllocateCount . get ( ) ) { return false ; } else { return true ; } }
allocates a keepalive for the connection .
