@Nullable public GridCacheMvccCandidate removeExplicitNodeCandidates(UUID nodeId){
  if (rmts != null) {
    for (Iterator<GridCacheMvccCandidate> it=rmts.iterator(); it.hasNext(); ) {
      GridCacheMvccCandidate cand=it.next();
      if (!cand.tx() && (nodeId.equals(cand.nodeId()) || nodeId.equals(cand.otherNodeId()))) {
        cand.setUsed();
        cand.setRemoved();
        it.remove();
      }
    }
    if (rmts.isEmpty())     rmts=null;
  }
  if (locs != null) {
    for (Iterator<GridCacheMvccCandidate> it=locs.iterator(); it.hasNext(); ) {
      GridCacheMvccCandidate cand=it.next();
      if (!cand.tx() && nodeId.equals(cand.otherNodeId()) && cand.dhtLocal()) {
        cand.setUsed();
        cand.setRemoved();
        it.remove();
      }
    }
    if (locs.isEmpty())     locs=null;
  }
  reassign();
  return anyOwner();
}

@ Nullable public GridCacheMvccCandidate removeExplicitNodeCandidates ( UUID nodeId ) { if ( rmts != null ) { for ( Iterator < GridCacheMvccCandidate > it = rmts . iterator ( ) ; it . hasNext ( ) ; ) { GridCacheMvccCandidate cand = it . next ( ) ; if ( ! cand . tx ( ) && ( nodeId . equals ( cand . nodeId ( ) ) || nodeId . equals ( cand . otherNodeId ( ) ) ) ) { cand . setUsed ( ) ; cand . setRemoved ( ) ; it . remove ( ) ; } } if ( rmts . isEmpty ( ) ) rmts = null ; } if ( locs != null ) { for ( Iterator < GridCacheMvccCandidate > it = locs . iterator ( ) ; it . hasNext ( ) ; ) { GridCacheMvccCandidate cand = it . next ( ) ; if ( ! cand . tx ( ) && nodeId . equals ( cand . otherNodeId ( ) ) && cand . dhtLocal ( ) ) { cand . setUsed ( ) ; cand . setRemoved ( ) ; it . remove ( ) ; } } if ( locs . isEmpty ( ) ) locs = null ; } reassign ( ) ; return anyOwner ( ) ; }
removes all candidates for node .
