Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
43 stars 43 forks source link

Add support to specify Cadinality on the EventHubTrigger #44

Closed pragnagopa closed 6 years ago

pragnagopa commented 6 years ago

Fixes #14

pragnagopa commented 6 years ago

@jdneo - Maven plugin needs to updated to generate function.json with the cardinality https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs#trigger---configuration

jdneo commented 6 years ago

@pragnagopa Seems this will be another breaking change for the runtime.

Is there any ETA for the following actions?

pragnagopa commented 6 years ago

This is not a breaking change. It adds support to specify cardinality which allows trigger input to be received as an array

jdneo commented 6 years ago

Cool, I'll let you know when the template is updated. Tracking here: https://github.com/Microsoft/azure-maven-plugins/issues/330

jeffhollan commented 6 years ago

@pragnagopa is there a related PR around the type that is used when this is turned on? Like a way for the Java worker to accept and send to a method that has like List<EventData> as the trigger type?

pragnagopa commented 6 years ago

@mhoeger is looking into https://github.com/Azure/azure-functions-host/pull/3170 . For out of proc languages, we do not have support for strong types like EventData. For this scenario, it would be a string[] array