コード例 #1
0
 void placeResponse(final int sequence, final ProtocolFrame response) {
   synchronized (myResponseQueue) {
     if (response == null || myResponseQueue.containsKey(sequence)) {
       myResponseQueue.put(sequence, response);
     }
     if (response != null) {
       myResponseQueue.notifyAll();
     }
   }
 }
コード例 #2
0
 public void register(String id, RemoteDebugger debugger) {
   myThreadIdToDebugger.put(id, debugger);
 }