Flutter Engine
The Flutter Engine
|
Public Member Functions | |
BlockingRequestSink (RequestSink base) | |
void | add (JsonObject request) |
void | close () |
RequestSink | toErrorSink (ResponseSink errorResponseSink, String errorResponseCode, String errorResponseMessage) |
RequestSink | toPassthroughSink () |
void | add (JsonObject request) |
void | close () |
A RequestSink
that enqueues all requests and can be later converted into a "passthrough" or an "error" RequestSink
.
Definition at line 25 of file BlockingRequestSink.java.
|
inline |
Definition at line 36 of file BlockingRequestSink.java.
|
inline |
Put request into the sink.
request | the request to put, not null . |
Implements org.dartlang.vm.service.internal.RequestSink.
Definition at line 41 of file BlockingRequestSink.java.
|
inline |
Close the communication channel.
Implements org.dartlang.vm.service.internal.RequestSink.
Definition at line 48 of file BlockingRequestSink.java.
|
inline |
Responds with an error to all the currently queued requests and return a RequestSink
to do the same for all the future requests.
errorResponseSink | the sink to send error responses to, not null |
Definition at line 58 of file BlockingRequestSink.java.
|
inline |
Returns the passthrough RequestSink
.
Definition at line 73 of file BlockingRequestSink.java.