Interface SingleResultCallback<T>

  • Type Parameters:
    T - the result type

    @Deprecated
    public interface SingleResultCallback<T>
    Deprecated.
    Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
    An interface to describe the completion of an asynchronous operation.
    Since:
    3.0
    • Method Detail

      • onResult

        void onResult​(T result,
                      Throwable t)
        Deprecated.
        Called when the operation completes.
        Parameters:
        result - the result, which may be null. Always null if e is not null.
        t - the throwable, or null if the operation completed normally