K - the type of the conflation keyV - the type of values in the createQueue@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 createQueuenewValue - the newer value that is currently being added to the createQueuenewValue itself but should not be olderValue as this instance
is returned by the enqueue method and may be reused by the producer