ServiceBusQueueTrigger Interface
public interface ServiceBusQueueTrigger
ServiceBusQueueTrigger(name = "msg", queueName = "myqueue", connection = "AzureServiceBusConnection") final String message, final ExecutionContext context ) { context.getLogger().info("Message is received: " + message); }
Method Summary
Modifier and Type | Method and Description |
---|---|
Access |
access()
Defines the permission of the Service Bus queue 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 |
queueName()
Defines the name of the Service Bus queue to which to bind. |
Method Details
access
public AccessRights access() default AccessRights.MANAGE
Defines the permission of the Service Bus queue 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:
queueName
public String queueName()
Defines the name of the Service Bus queue to which to bind.
Returns:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기