private void requestStreamsInfo2(Set<String> streams,boolean special){
  Set<String> streamsForRequest=new HashSet<>();
  Set<StreamInfo> streamInfosForRequest=new HashSet<>();
  for (  String stream : streams) {
    StreamInfo cached=getStreamInfo(stream);
    if (!cached.isRequested() && (!special || cached.recheckOffline())) {
      streamsForRequest.add(stream);
      streamInfosForRequest.add(cached);
      cached.setRequested();
    }
  }
  if (special) {
    specialCheckLastDone=System.currentTimeMillis();
  }
  if (!streamsForRequest.isEmpty()) {
    if (!special) {
      streamsInfoLastRequested=System.currentTimeMillis();
    }
    String url=api.requestStreamsInfo(streamsForRequest);
    pendingRequests.put(url,streamInfosForRequest);
  }
}

private void requestStreamsInfo2 ( Set < String > streams , boolean special ) { Set < String > streamsForRequest = new HashSet < > ( ) ; Set < StreamInfo > streamInfosForRequest = new HashSet < > ( ) ; for ( String stream : streams ) { StreamInfo cached = getStreamInfo ( stream ) ; if ( ! cached . isRequested ( ) && ( ! special || cached . recheckOffline ( ) ) ) { streamsForRequest . add ( stream ) ; streamInfosForRequest . add ( cached ) ; cached . setRequested ( ) ; } } if ( special ) { specialCheckLastDone = System . currentTimeMillis ( ) ; } if ( ! streamsForRequest . isEmpty ( ) ) { if ( ! special ) { streamsInfoLastRequested = System . currentTimeMillis ( ) ; } String url = api . requestStreamsInfo ( streamsForRequest ) ; pendingRequests . put ( url , streamInfosForRequest ) ; } }
request info for a list of streams in one request . puts together a list of streams that fit the criteria ( mainly that they aren ' t currently waiting for a response ) and then actually starts a request if there are streams to request . this is used for two different kinds of requests : the regular request of all open channels and the special request that is used to recheck offline status .
