Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.45 KB

File metadata and controls

34 lines (28 loc) · 1.45 KB

Azure Functions Java Core

This package contains libraries to author Azure Functions in Java.

Usage

Use this package by including the following snippet in your pom.xml.

<dependency>
    <groupId>com.microsoft.azure.serverless</groupId>
    <artifactId>azure-function-java-core</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

Annotation for Triggers and Bindings

Instead of writing function.json, you can use annotations in code to specify triggers and bindings of your functions. function.json can be automatically generated by Maven Plugin for Azure Functions.

The following table lists the Java annotations for each binding type.

Binding Annotation
CosmosDB N/A
Event Hubs
  • EventHubTrigger
  • EventHubOutput
HTTP
  • HttpTrigger
  • HttpOutput
Mobile Apps N/A
Notification Hubs N/A
Service Bus
  • ServiceBusQueueTrigger
  • ServiceBusQueueOutput
  • ServiceBusTopicTrigger
  • ServiceBusTopicOutput
Storage Blob
  • BlobTrigger
  • BlobOutput
  • StorageAccount
Storage Queue
  • QueueTrigger
  • QueueOutput
  • StorageAccount
Storage Table
  • TableInput
  • TableOutput
  • StorageAccount
Timer
  • TimerTrigger
Twilio N/A