14package org.dartlang.vm.service.internal;
16import com.google.common.collect.Lists;
17import com.google.gson.JsonObject;
19import java.util.LinkedList;
34 private final LinkedList<JsonObject> queue = Lists.newLinkedList();
41 public void add(JsonObject request) {
42 synchronized (
queue) {
59 String errorResponseMessage) {
61 errorResponseMessage);
62 synchronized (
queue) {
63 for (JsonObject request :
queue) {
64 errorRequestSink.
add(request);
67 return errorRequestSink;
74 synchronized (
queue) {
75 for (JsonObject request :
queue) {
BlockingRequestSink(RequestSink base)
RequestSink toPassthroughSink()
RequestSink toErrorSink(ResponseSink errorResponseSink, String errorResponseCode, String errorResponseMessage)
void add(JsonObject request)
void add(JsonObject request)