Hi @vipin sharma , we are working on creating examples for all types of triggers and bindings using spring cloud function. I will let you know once they are created.
For now I think you can use below type for your case
public class QueueTriggerHandler extends FunctionInvoker<Integer, Void>
We are also release a new feature to enable more seamless integration with spring cloud on azure functions, you can found some example at https://github.com/spring-cloud/spring-cloud-function/tree/main/spring-cloud-function-samples/function-azure-di-samples, it should be fully released next one week or two. I will let you know. With this new feature you won't have the issue as you currently have witht the FunctionInvoker
Thanks.