Package io.hekate.messaging.operation
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 anAggregate
operation.- See Also:
Aggregate.submit()
,AggregateResult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onComplete(Throwable err, AggregateResult<T> result)
Called when the aggregation operation gets completed either successfully or with an error.
-
-
-
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 andresult
parameter will benull
. Otherwiseerr
parameter will benull
andresult
parameter will hold the aggregation result.- Parameters:
err
- Error (null
if operation was successful).result
- Aggregation result (null
if operation failed).
-
-