ServiceBusTopicTrigger Interface
public interface ServiceBusTopicTrigger
ServiceBusTopicTrigger(name = "msg", topicName = "mytopicname", subscriptionName = "mysubname", connection = "myconnvarname") String message, final ExecutionContext context ) { context.getLogger().info(message); }
Method Summary
Modifier and Type | Method and Description |
---|---|
Access |
access()
Defines the permission of the Service Bus topic to which to bind. |
Cardinality |
cardinality()
Cardinality of the trigger input. Choose 'One' if the input is a single message or 'Many' if the input is an array of messages. 'ONE' is the default if unspecified |
String |
connection()
Defines the app setting name that contains the Service Bus connection string. |
String |
dataType()
Defines how Functions runtime should treat the parameter value. Possible values are:
|
boolean |
isSessionsEnabled()
Defines the value indicating whether the sessions are enabled. |
String |
name()
The variable name used in function.json. |
String |
subscriptionName()
Defines the subscription name of the Service Bus topic to which to bind. |
String |
topicName()
Defines the name of the Service Bus topic to which to bind. |
Method Details
access
public AccessRights access() default AccessRights.MANAGE
Defines the permission of the Service Bus topic to which to bind.
Returns:
cardinality
public Cardinality cardinality() default Cardinality.ONE
Cardinality of the trigger input. Choose 'One' if the input is a single message or 'Many' if the input is an array of messages. 'ONE' is the default if unspecified
Returns:
connection
public String connection()
Defines the app setting name that contains the Service Bus connection string.
Returns:
dataType
public String dataType() default ""
Defines how Functions runtime should treat the parameter value. Possible values are:
<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:
isSessionsEnabled
public boolean isSessionsEnabled() default false
Defines the value indicating whether the sessions are enabled.
Returns:
name
public String name()
The variable name used in function.json.
Returns:
subscriptionName
public String subscriptionName()
Defines the subscription name of the Service Bus topic to which to bind.
Returns:
topicName
public String topicName()
Defines the name of the Service Bus topic to which to bind.
Returns: