Package com.rpl.agentorama
Class FinishedAgg
java.lang.Object
com.rpl.agentorama.FinishedAgg
Signals that an aggregator should immediately finish with a final value.
When an aggregator implementation returns a FinishedAgg, the aggregation
immediately completes with the specified value. All future values sent to
the aggregator will be ignored.
This is useful for implementing aggregators that can determine their final
result early based on certain conditions.
-
Constructor Summary
ConstructorsConstructorDescriptionFinishedAgg(Object value) Creates a FinishedAgg with the specified final value. -
Method Summary
-
Constructor Details
-
FinishedAgg
Creates a FinishedAgg with the specified final value.- Parameters:
value- the final value for the aggregation
-
-
Method Details
-
getValue
Gets the final value for the aggregation.- Returns:
- the final value
-