public void discard(ServiceRegistrar reg){
synchronized (registrars) {
    if (terminated) {
      throw new IllegalStateException("discovery terminated");
    }
    if (reg == null)     return;
    sendDiscarded(reg,null);
  }
}

public void discard ( ServiceRegistrar reg ) { synchronized ( registrars ) { if ( terminated ) { throw new IllegalStateException ( "discovery terminated" ) ; } if ( reg == null ) return ; sendDiscarded ( reg , null ) ; } }
discard a registrar from the set of registrars already discovered . this does not prevent that registrar from being rediscovered ; it is intended to be used to clear unreachable entries from the set . < p > if the registrar has been discovered using this lookupdiscovery object , each listener registered with this object will have its discarded method called with the given registrar as parameter .
