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

io.smallrye.reactive.messaging.annotations.Incomings Maven / Gradle / Ivy

There is a newer version: 4.26.0
Show newest version
package io.smallrye.reactive.messaging.annotations;

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

import org.eclipse.microprofile.reactive.messaging.Incoming;

/**
 * This class is used to allow multiple {@link Incoming} declarations.
 * You can either use:
 *
 * 
 * 
 * @Incoming("a")
 * @Incoming("b")
 * public void consume(T t);
 * 
 * 
* * Or use the {@link Incomings} annotation as container: * *
 * 
 * @Incomings({
 *    @Incoming("a")
 *    @Incoming("b")
 * })
 * public void consume(T t);
 * 
 *
 * 
* * NOTE: Experimental, not part of the specification. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Incomings { /** * @return the array of {@link Incoming}, must not contain {@code null}. All the included {@link Incoming} must be * value (have a non-blank and non-null channel name). */ Incoming[] value(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy