void rememberFactory(String host,RMISocketFactory factory){
synchronized (successTable) {
    while (hostList.size() >= MaxRememberedHosts) {
      successTable.remove(hostList.elementAt(0));
      hostList.removeElementAt(0);
    }
    hostList.addElement(host);
    successTable.put(host,factory);
  }
}

void rememberFactory ( String host , RMISocketFactory factory ) { synchronized ( successTable ) { while ( hostList . size ( ) >= MaxRememberedHosts ) { successTable . remove ( hostList . elementAt ( 0 ) ) ; hostList . removeElementAt ( 0 ) ; } hostList . addElement ( host ) ; successTable . put ( host , factory ) ; } }
remember a successful factory for connecting to host . currently , excess hosts are removed from the remembered list using a least recently created strategy .
