@Qualifier @Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,FIELD,PARAMETER}) 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 will receive the emitted values / signals:
@Inject @Channel("my-channel") Emitter<String> emitter;
// ...
emitter.send("a");
A subscriber for the above channel must be found when the application starts.
Otherwise, DeploymentException
must be thrown.public abstract String value
@Outgoing
annotation.null
and non-blank. It must matches one of the available channels.Copyright © 2018 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.