io.smallrye.reactive.messaging.annotations.Outgoings Maven / Gradle / Ivy
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.Outgoing;
/**
* This class is used to allow multiple {@link Outgoing} declarations.
* You can either use:
*
*
*
* @Outgoing("a")
* @Outgoing("b")
* public void consume(T t);
*
*
*
* Or use the {@link Outgoings} annotation as container:
*
*
*
* @Outgoings({
* @Outgoing("a")
* @Outgoing("b")
* })
* public void consume(T t);
*
*
*
*
* NOTE: Experimental, not part of the specification.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Outgoings {
/**
* @return the array of {@link Outgoing}, must not contain {@code null}. All the included {@link Outgoing} must be
* value (have a non-blank and non-null channel name).
*/
Outgoing[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy