azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.functio...

64 строки
4.2 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.functions.annotation.QueueOutput"
fullName: "com.microsoft.azure.functions.annotation.QueueOutput"
name: "QueueOutput"
nameWithType: "QueueOutput"
summary: "Place this on a parameter whose value would be written to a storage queue."
syntax: "public interface **QueueOutput**</br> implements <xref href=\"java.lang.annotation.Annotation?alt=java.lang.annotation.Annotation&text=Annotation\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.microsoft.azure.functions.annotation.QueueOutput.connection()"
fullName: "com.microsoft.azure.functions.annotation.QueueOutput.connection()"
name: "connection()"
nameWithType: "QueueOutput.connection()"
summary: "Defines the app setting name that contains the Azure Storage connection string."
modifiers:
- "abstract"
syntax: "public abstract String connection()"
desc: "Defines the app setting name that contains the Azure Storage connection string."
returns:
description: "The app setting name of the connection string."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.QueueOutput.dataType()"
fullName: "com.microsoft.azure.functions.annotation.QueueOutput.dataType()"
name: "dataType()"
nameWithType: "QueueOutput.dataType()"
summary: "Defines how Functions runtime should treat the parameter value."
modifiers:
- "abstract"
syntax: "public abstract String dataType()"
desc: "Defines how Functions runtime should treat the parameter value. Possible values are:\n\n * \"\" or string: treat it as a string whose value is serialized from the parameter\n * binary: treat it as a binary data whose value comes from for example OutputBinding<byte\\[\\]>"
returns:
description: "The dataType which will be used by the Functions runtime."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.QueueOutput.name()"
fullName: "com.microsoft.azure.functions.annotation.QueueOutput.name()"
name: "name()"
nameWithType: "QueueOutput.name()"
summary: "The variable name used in function.<wbr>json."
modifiers:
- "abstract"
syntax: "public abstract String name()"
desc: "The variable name used in function.json."
returns:
description: "The variable name used in function.json."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.QueueOutput.queueName()"
fullName: "com.microsoft.azure.functions.annotation.QueueOutput.queueName()"
name: "queueName()"
nameWithType: "QueueOutput.queueName()"
summary: "Defines the name of the storage queue to which to write."
modifiers:
- "abstract"
syntax: "public abstract String queueName()"
desc: "Defines the name of the storage queue to which to write."
returns:
description: "The queue name string."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
type: "interface"
desc: "Place this on a parameter whose value would be written to a storage queue. The parameter type should be OutputBinding<T>, where T could be one of:\n\n * Any native Java types such as int, String, byte\\[\\]\n * Any POJO type\n\nThe following example shows a Java function that creates a queue message for each HTTP request received.\n\n```java\n@FunctionName(\"httpToQueue\")\n@QueueOutput(name = \"item\", queueName = \"myqueue-items\", connection = \"AzureWebJobsStorage\")\n public String pushToQueue(\n @HttpTrigger(name = \"request\", methods = {HttpMethod.POST}, authLevel = AuthorizationLevel.ANONYMOUS)\n final String message,\n @HttpOutput(name = \"response\") final OutputBinding<String> result\n ) {\n result.setValue(message + \" has been added.\");\n return message;\n }\n```"
implements:
- "<xref href=\"java.lang.annotation.Annotation?alt=java.lang.annotation.Annotation&text=Annotation\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.microsoft.azure.functions.annotation"
artifact: com.microsoft.azure.functions:azure-functions-java-library:1.3.1