Package io.grpc.stub
Class ClientCalls.BlockingResponseStream<T>
java.lang.Object
io.grpc.stub.ClientCalls.BlockingResponseStream<T>
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
ClientCalls
private static final class ClientCalls.BlockingResponseStream<T>
extends Object
implements Iterator<T>
Convert events on a
ClientCall.Listener
into a blocking Iterator
.
The class is not thread-safe, but it does permit ClientCall.Listener
calls in a
separate thread from Iterator
calls.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockingQueue
<Object> private final ClientCall
<?, T> private Object
private final ClientCalls.StartableListener
<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
buffer
-
listener
-
call
-
last
-
-
Constructor Details
-
BlockingResponseStream
BlockingResponseStream(ClientCall<?, T> call)
-
-
Method Details