![]() | AggregationMultiFunctionHandlerAggregationStateUniqueKey Property |
The runtime applies equals-semantics to determine state sharing. If two instances are equal (implement hashCode and equals) then the runtime shares a single aggregation state instance for the two aggregation function expressions.
If your aggregation function never needs shared state simple return {@code new AggregationStateKey(){}}.
If your aggregation function always shares state simple declare {@code private static final AggregationStateKey MY_KEY = new AggregationStateKey() {};} and {@code return MY_KEY}; (if using multiple handlers declare the key on the factory level).
Namespace: com.espertech.esper.common.client.hook.aggmultifunc
AggregationMultiFunctionStateKey AggregationStateUniqueKey { get; }