Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The current design forces users to do stuff like this (I can provide more than a few examples already)
List<MessageStream<GenericRecord>> xTrackingMonitoringEvents = new ArrayList<>(); // ... populate the list MessageStream<GenericRecord> initialInputStream = xTrackingMonitoringEvents.remove(xTrackingMonitoringEvents.size() - 1); Collection<MessageStream<? extends GenericRecord>> otherStreams = (Collection<MessageStream<? extends GenericRecord>>) (Object) xTrackingMonitoringEvents; initialInputStream .merge(otherStreams) // .do other stuff
^ eww. Removing one item from the array so it can be used as the initial message stream seems to cause pain.
Lets see if we can come up with a cleaner way to do merge()
Attachments
Issue Links
- links to