Annotation Type Channel
@Qualifier
@Retention(RUNTIME)
@Target({METHOD,CONSTRUCTOR,FIELD,PARAMETER})
@Deprecated
public @interface Channel
Deprecated.
This qualifier indicates which channel should be injected / populated.
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:
- Publisher<X> with X the payload type
- Publisher<Message<X>> with X the payload type
- Flowable<X> with X the payload type
- Flowable<Message<X>> with X the payload type
- PublisherBuilder<Message<X>> with X the payload type
- PublisherBuilder<X> with X the payload type
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");
-
Required Element Summary
-
Element Details
-
value
String valueDeprecated.The name of the channel.- Returns:
- the channel name, mandatory, non-null and non-blank. It must matches one of the available channels.
-
Channel
instead.