private void computeMaxLeases(){
  maxServiceLease=Math.max(minMaxServiceLease,minRenewalInterval * (serviceByID.size() + ((eventByID.size() * minMaxServiceLease) / minMaxEventLease)));
  maxEventLease=Math.max(minMaxEventLease,((maxServiceLease * minMaxEventLease) / minMaxServiceLease));
}

private void computeMaxLeases ( ) { maxServiceLease = Math . max ( minMaxServiceLease , minRenewalInterval * ( serviceByID . size ( ) + ( ( eventByID . size ( ) * minMaxServiceLease ) / minMaxEventLease ) ) ) ; maxEventLease = Math . max ( minMaxEventLease , ( ( maxServiceLease * minMaxEventLease ) / minMaxServiceLease ) ) ; }
compute new maxservicelease and maxeventlease values . this needs to be called whenever the number of services ( # s ) or number of events ( # e ) changes , or whenever any of the configuration parameters change . the two base equations driving the computation are : # s / maxservicelease + # e / maxeventlease < = 1 / minrenewalinterval maxservicelease / maxeventlease = minmaxservicelease / minmaxeventlease
