- All Implemented Interfaces:
org.yamcs.api.Observer<T>
public class ResponseObserver<T>
extends Object
implements org.yamcs.api.Observer<T>
An observer that completes a future based on a single response.
-
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 org.yamcs.api.Observer
complete, isCancelled, setCancelHandler
-
-
Method Details
-
next
public void next(T message)
- Specified by:
next in interface org.yamcs.api.Observer<T>
-
completeExceptionally
public void completeExceptionally(Throwable t)
- Specified by:
completeExceptionally in interface org.yamcs.api.Observer<T>
-
complete
public void complete()
- Specified by:
complete in interface org.yamcs.api.Observer<T>