Share via


ServiceBusTopicTrigger インターフェイス

public interface ServiceBusTopicTrigger

ServiceBusTopicTrigger(name = "msg", topicName = "mytopicname", subscriptionName = "mysubname", connection = "myconnvarname") String message, final ExecutionContext context ) { context.getLogger().info(message); }

メソッドの概要

修飾子と型 メソッドと説明
AccessRights access()

バインド先の Service Bus トピックのアクセス許可を定義します。

Cardinality cardinality()

トリガー入力のカーディナリティ。 入力が 1 つのメッセージの場合は "One" を選択し、入力がメッセージの配列の場合は "多" を選択します。 指定されていない場合、'ONE' が既定値です

String connection()

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

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>
    

boolean isSessionsEnabled()

セッションが有効かどうかを示す値を定義します。

String name()

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

String subscriptionName()

バインド先の Service Bus トピックのサブスクリプション名を定義します。

String topicName()

バインド先の Service Bus トピックの名前を定義します。

メソッドの詳細

access

public AccessRights access() default AccessRights.MANAGE

バインド先の Service Bus トピックのアクセス許可を定義します。

Returns:

Service Bus トピックのアクセス許可。

cardinality

public Cardinality cardinality() default Cardinality.ONE

トリガー入力のカーディナリティ。 入力が 1 つのメッセージの場合は "One" を選択し、入力がメッセージの配列の場合は "多" を選択します。 指定されていない場合、'ONE' が既定値です

Returns:

Cardinalityカーディナリティを表す値

connection

public String connection()

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

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。

isSessionsEnabled

public boolean isSessionsEnabled() default false

セッションが有効かどうかを示す値を定義します。

Returns:

セッションが有効かどうかを示す値。

name

public String name()

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

Returns:

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

subscriptionName

public String subscriptionName()

バインド先の Service Bus トピックのサブスクリプション名を定義します。

Returns:

Service Bus トピックサブスクリプション名の文字列。

topicName

public String topicName()

バインド先の Service Bus トピックの名前を定義します。

Returns:

Service Bus トピック名の文字列。

適用対象