1 package net.sourceforge.phpeclipse.xdebug.core.xdebug;
3 import java.util.HashMap;
4 //import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.DebugResponse;
5 import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.XDebugResponse;
7 public class ResponseList {
11 public ResponseList() {
13 fList = new HashMap();
16 public synchronized void add(XDebugResponse response/*, int id*/) {
17 int id = response.getTransactionID();
18 fList.put(new Integer(id), response);
23 public synchronized XDebugResponse get(int id) {
24 while (id > fLastId) {
27 } catch (InterruptedException e) {
31 if (fList.containsKey(new Integer(id)))
32 return (XDebugResponse) fList.remove(new Integer(id));