Permalink
Browse files

Ultime modifiche

  • Loading branch information...
fpaparoni committed Jan 31, 2018
1 parent 2f78cf9 commit c47fd91755f05a6e4e9ed7fa04dcf2c8d6c206ab
@@ -0,0 +1,19 @@
package com.javastaff.azure.functions;
import com.microsoft.azure.serverless.functions.ExecutionContext;
import com.microsoft.azure.serverless.functions.annotation.*;
public class CascadeQueueFunction {
@FunctionName("cascadeQueueFunction")
@QueueOutput(name = "myQueueItemOut",
queueName = "codaMessaggiInArrivo",
connection = "AzureWebJobsStorage")
public String functionHandler(
@QueueTrigger(name = "myQueueItem",
queueName = "codaMessaggiInTransito",
connection = "AzureWebJobsStorage") String myQueueItem,
final ExecutionContext executionContext) {
executionContext.getLogger().info("Queue trigger input: " + myQueueItem);
return myQueueItem.toUpperCase();
}
}

This file was deleted.

Oops, something went wrong.
@@ -15,7 +15,8 @@
*/
@FunctionName("hello")
public HttpResponseMessage<String> hello(
@HttpTrigger(name = "req", methods = {"get", "post"}, authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage<Optional<String>> request,
@HttpTrigger(name = "req", methods = {"get", "post"}, authLevel = AuthorizationLevel.ANONYMOUS)
HttpRequestMessage<Optional<String>> request,
final ExecutionContext context) {
context.getLogger().info("Java HTTP trigger processed a request.");
@@ -7,7 +7,7 @@
public class TimerFunction {
@FunctionName("timerFunction")
@QueueOutput(name = "queueItem", queueName = "codaMessaggiInArrivo", connection = "AzureWebJobsStorage")
@QueueOutput(name = "queueItem", queueName = "codaMessaggiInTransito", connection = "AzureWebJobsStorage")
public String functionHandler(
@TimerTrigger(name = "timerInfo", schedule = "*/30 * * * * *") String timerInfo,
final ExecutionContext executionContext) {

0 comments on commit c47fd91

Please sign in to comment.