public void addRequestForStream(StreamDataSource sds, int serial) { if (afterLoadMap.containsKey(sds)) { List sList = (List) afterLoadMap.get(sds); sList.add(new Integer(serial)); } else { List sList = new LinkedList(); sList.add(new Integer(serial)); afterLoadMap.put(sds, sList); } }
private void addStreamNoFire(StreamDataSource stream) { streams.add(stream); serialToStream.put(new Integer(stream.getSerial()), stream); }