K - the type of the conflation keyV - the type of values in the queue@FunctionalInterface public interface Merger<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
merge(K conflationKey,
V olderValue,
V newValue)
Method called to merge two values; the merged value is returned.
|
V merge(K conflationKey, V olderValue, V newValue)
conflationKey - the conflation keyolderValue - the older value that was already present in the queuenewValue - the newer value that is currently being added to the queuenewValue itself but should not be olderValue as this instance
is returned by the enqueue method and may be reused by the producer