Class FinishedAgg

java.lang.Object
com.rpl.agentorama.FinishedAgg

public class FinishedAgg extends Object
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 Details

    • FinishedAgg

      public FinishedAgg(Object value)
      Creates a FinishedAgg with the specified final value.
      Parameters:
      value - the final value for the aggregation
  • Method Details

    • getValue

      public Object getValue()
      Gets the final value for the aggregation.
      Returns:
      the final value