All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.functions.dapr.annotation.DaprTopicTrigger Maven / Gradle / Ivy

/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.azure.functions.dapr.annotation;

import com.microsoft.azure.functions.annotation.CustomBinding;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;


import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;

/**
 *  Attribute to specify parameters for the Dapr topic trigger.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@CustomBinding(direction = "in", name = "daprTopicTriggerMessage", type = "daprTopicTrigger")
public @interface DaprTopicTrigger {
    /**
     * Pub/Sub name.
     */
    String pubSubName();

    /**
     * Topic name. If unspecified, the function name will be used.
     */
    String topic() default "";

    /**
     * Route for the trigger. If unspecified, the topic name will be used.                              
     */
    String route() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy