The following change addresses https://github.com/eclipse-uprotocol/up-spec/issues/73 by proposing we extend the UListener interface to specific types for the umessage types in lieu of new APIs. This provides the most backwards compatibility in the API while also providing flexibility for pattern matching. The publish, notification, request, and response message types have fixed listener mapping requirements so we can define these marker interfaces in core library. Huge thank you for Tamara for the idea!
The following change addresses https://github.com/eclipse-uprotocol/up-spec/issues/73 by proposing we extend the UListener interface to specific types for the umessage types in lieu of new APIs. This provides the most backwards compatibility in the API while also providing flexibility for pattern matching. The publish, notification, request, and response message types have fixed listener mapping requirements so we can define these marker interfaces in core library. Huge thank you for Tamara for the idea!