Interface AggregateCallback<T>

  • Type Parameters:
    T - Base type of a messages.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AggregateCallback<T>
    Callback for an Aggregate operation.
    See Also:
    Aggregate.submit(), AggregateResult
    • Method Detail

      • onComplete

        void onComplete​(Throwable err,
                        AggregateResult<T> result)
        Called when the aggregation operation gets completed either successfully or with an error.

        If operation completes with a fatal error (f.e channel is closed) then err parameter will hold the error cause and result parameter will be null. Otherwise err parameter will be null and result parameter will hold the aggregation result.

        Parameters:
        err - Error (null if operation was successful).
        result - Aggregation result (null if operation failed).