Package org.yamcs.client.base
Class ResponseObserver<T>
java.lang.Object
org.yamcs.client.base.ResponseObserver<T>
- All Implemented Interfaces:
Observer<T>
An observer that completes a future based on a single response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
Mark the successful end.void
Complete with an exception.void
Emit the next message.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
-
ResponseObserver
-
-
Method Details
-
next
Description copied from interface:Observer
Emit the next message. -
completeExceptionally
Description copied from interface:Observer
Complete with an exception.- Specified by:
completeExceptionally
in interfaceObserver<T>
-
complete
public void complete()Description copied from interface:Observer
Mark the successful end.
-