Class EmitterImpl<T>
- java.lang.Object
- 
- io.smallrye.reactive.messaging.extension.EmitterImpl<T>
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete()Sends the completion event to the channel indicating that no other events will be sent afterward.voiderror(Exception e)Sends a failure event to the channel.org.reactivestreams.Publisher<Message<? extends T>>getPublisher()booleanisCancelled()booleanisRequested()<M extends Message<? extends T>>
 voidsend(M msg)Sends a payload to the channel.CompletionStage<Void>send(T msg)Sends a payload to the channel.
 
- 
- 
- 
Method Detail- 
sendpublic CompletionStage<Void> send(T msg) Description copied from interface:EmitterSends a payload to the channel.
 - 
sendpublic <M extends Message<? extends T>> void send(M msg) Description copied from interface:EmitterSends a payload to the channel.
 - 
completepublic void complete() Description copied from interface:EmitterSends the completion event to the channel indicating that no other events will be sent afterward.
 - 
errorpublic void error(Exception e) Description copied from interface:EmitterSends a failure event to the channel. No more events will be sent afterward.
 - 
isCancelledpublic boolean isCancelled() - Specified by:
- isCancelledin interface- Emitter<T>
- Returns:
- trueif the emitter has been terminated or the subscription cancelled.
 
 - 
isRequestedpublic boolean isRequested() - Specified by:
- isRequestedin interface- Emitter<T>
- Returns:
- trueif the subscriber accepts messages,- falseotherwise. Using- Emitter.send(Object)on an emitter not expecting message would throw an- IllegalStateException.
 
 
- 
 
-