Interface Observer<TResult>

  • Type Parameters:
    TResult - The type of element signaled.

    Deprecated. 
    Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)

    @Deprecated
    public interface Observer<TResult>
    Provides a mechanism for receiving push-based notifications.

    Will receive a call to onSubscribe(Subscription) on subscription to the Observable. No further notifications will be received until Subscription.request(long) is called.

    After signaling demand:

    Demand can be signaled via Subscription.request(long) whenever the Observer instance is capable of handling more.

    Since:
    3.1