We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This sample outputs a string to a specified queue in RabbitMQ.
@FunctionName("RabbitMQOutputExample") public void run( @TimerTrigger(name = "keepAliveTrigger", schedule = "0 */5 * * * *") String timerInfo, @RabbitMQOutput(connectionStringSetting = "rabbitMQ", queueName = "hello") OutputBinding<String> output, final ExecutionContext context) { output.setValue("Some string"); }
The below sample provides an example of getting a String as an input from a rabbitMQ queue.
@FunctionName("RabbitMQTriggerExample") public void run( @RabbitMQTrigger(connectionStringSetting = "rabbitMQ", queueName = "TestQueue") String input, final ExecutionContext context) { context.getLogger().info("Java HTTP trigger processed a request." + input); }