Class ResponseObserver<T>

java.lang.Object
org.yamcs.client.base.ResponseObserver<T>
All Implemented Interfaces:
Observer<T>

public class ResponseObserver<T> extends Object implements Observer<T>
An observer that completes a future based on a single response.
  • Constructor Details

  • Method Details

    • next

      public void next(T message)
      Description copied from interface: Observer
      Emit the next message.
      Specified by:
      next in interface Observer<T>
    • completeExceptionally

      public void completeExceptionally(Throwable t)
      Description copied from interface: Observer
      Complete with an exception.
      Specified by:
      completeExceptionally in interface Observer<T>
    • complete

      public void complete()
      Description copied from interface: Observer
      Mark the successful end.
      Specified by:
      complete in interface Observer<T>