Home
last modified time | relevance | path

Searched refs:responseQueue (Results 1 – 3 of 3) sorted by relevance

/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DQueueDispatcher.java27 protected final BlockingQueue<MockResponse> responseQueue = new LinkedBlockingQueue<>(); field in QueueDispatcher
38 if (failFastResponse != null && responseQueue.peek() == null) { in dispatch()
43 return responseQueue.take(); in dispatch()
47 MockResponse peek = responseQueue.peek(); in peek()
54 responseQueue.add(response); in enqueueResponse()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DQueueDispatcher.java27 protected final BlockingQueue<MockResponse> responseQueue field in QueueDispatcher
40 if (failFastResponse != null && responseQueue.peek() == null) { in dispatch()
45 return responseQueue.take(); in dispatch()
49 MockResponse peek = responseQueue.peek(); in peek()
56 responseQueue.add(response); in enqueueResponse()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DTestThread.java62 private final SynchronousQueue<Response> responseQueue = new SynchronousQueue<Response>(); field in TestThread
146 assertNull(responseQueue.poll()); in callAndAssertBlocks()
165 assertNull(responseQueue.poll()); in callAndAssertWaits()
207 Response response = responseQueue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in getResponse()
245 responseQueue.put( in run()
249 responseQueue.put(new Response(request.methodName, null, throwable)); in run()
252 responseQueue.put(new Response(request.methodName, result, null)); in run()