@Qualifier @Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,FIELD,PARAMETER}) @Experimental(value="smallrye-only, added to the specification") public @interface Channel
This qualifier can be used to inject a Channel containing the items and signals propagated by the specified
channel. For example, it can be used to @Inject
a Publisher
representing a channel managed by the
Reactive Messaging implementation.
Can be injected:
When this qualifier is used on an Emitter
, it indicates which channel received the emitted values / signals:
@Inject @Channel("my-channel") Emitter<String> emitter;
// ...
emitter.send("a");
A subscriber for the above channel must be found by the time a message is emitted to the channel.
Otherwise, IllegalStateException
must be thrown.public abstract String value
@Outgoing
annotation.null
and non-blank. It must matches one of the available channels.Copyright © 2018–2021 SmallRye. All rights reserved.