MemoizingObserver

public class MemoizingObserver<T>

The StreamObserver which stores the input data and then exposes it via API calls.

Parameters

<T>

the type of streamed objects

Constructors

Link copied to clipboard
public void MemoizingObserver()
Creates new empty instance.

Functions

Link copied to clipboard
public T firstResponse()
Returns the first item which has been fed to this StreamObserver.
Link copied to clipboard
Obtains the error if it has been received by this observer.
Link copied to clipboard
public boolean isCompleted()
Allows to understand whether the response has been completed.
Link copied to clipboard
public void onCompleted()
Link copied to clipboard
public void onError(Throwable t)
Link copied to clipboard
public void onNext(T value)
Link copied to clipboard
public List<T> responses()
Returns all the responses received so far.