Package org.yamcs.client.base
Class ClientStreamingObserver
java.lang.Object
org.yamcs.client.base.ClientStreamingObserver
- All Implemented Interfaces:
Observer<com.google.protobuf.Message>
public class ClientStreamingObserver
extends Object
implements Observer<com.google.protobuf.Message>
A message observer that implements a streaming request over HTTP using chunked transfer encoding.
-
Constructor Summary
ConstructorDescriptionClientStreamingObserver
(com.google.protobuf.Descriptors.MethodDescriptor method, RestClient baseClient, com.google.protobuf.Message responsePrototype, Observer<com.google.protobuf.Message> responseObserver) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.api.Observer
complete, isCancelled, setCancelHandler
-
Constructor Details
-
ClientStreamingObserver
public ClientStreamingObserver(com.google.protobuf.Descriptors.MethodDescriptor method, RestClient baseClient, com.google.protobuf.Message responsePrototype, Observer<com.google.protobuf.Message> responseObserver)
-
-
Method Details
-
next
public void next(com.google.protobuf.Message message) Description copied from interface:Observer
Emit the next message. -
completeExceptionally
Description copied from interface:Observer
Complete with an exception.- Specified by:
completeExceptionally
in interfaceObserver<com.google.protobuf.Message>
-
complete
public void complete()Description copied from interface:Observer
Mark the successful end.
-