Share via


QueueTrigger インターフェイス

public interface QueueTrigger

QueueTrigger(name = "msg", queueName = "myqueue-items", connection = "AzureWebJobsStorage") String message, final ExecutionContext context ) { context.getLogger().info("Queue message processed: " + message); }

メソッドの概要

修飾子と型 メソッドと説明
String connection()

Azure Storage 接続文字列を含むアプリ設定名を定義します。

String dataType()

Functions ランタイムがパラメーター値をどのように扱うかを定義します。 次のいずれかの値になります。

    <li>
    
      <p>"": get the value as a string, and try to deserialize to actual parameter type like POJO </p>
    
    </li>
    
    <li>
    
      <p>string: always get the value as a string </p>
    
    </li>
    
    <li>
    
      <p>binary: get the value as a binary data, and try to deserialize to actual parameter type byte[] </p>
    
    </li>
    

String name()

function.json で使用される変数名。

String queueName()

バインド先のストレージ キューの名前を定義します。

メソッドの詳細

connection

public String connection() default ""

Azure Storage 接続文字列を含むアプリ設定名を定義します。

Returns:

接続文字列のアプリ設定名。

dataType

public String dataType() default ""

Functions ランタイムがパラメーター値をどのように扱うかを定義します。 次のいずれかの値になります。

    <li>
    
      <p>"": get the value as a string, and try to deserialize to actual parameter type like POJO </p>
    
    </li>
    
    <li>
    
      <p>string: always get the value as a string </p>
    
    </li>
    
    <li>
    
      <p>binary: get the value as a binary data, and try to deserialize to actual parameter type byte[] </p>
    
    </li>
    

Returns:

Functions ランタイムによって使用される dataType。

name

public String name()

function.json で使用される変数名。

Returns:

function.json で使用される変数名。

queueName

public String queueName()

バインド先のストレージ キューの名前を定義します。

Returns:

ストレージ キュー名の文字列。

適用対象