Class LegacyEmitterImpl<T>
- java.lang.Object
 - 
- io.smallrye.reactive.messaging.extension.LegacyEmitterImpl<T>
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete()Completes the stream.voiderror(Exception e)Propagates an error in the stream.booleanisCancelled()booleanisRequested()Emitter<T>send(T msg)Sends a payload or a message to the stream. 
 - 
 
- 
- 
Method Detail
- 
complete
public void complete()
Description copied from interface:EmitterCompletes the stream. This method sends the completion signal, no messages can be sent once this method is called. 
- 
error
public void error(Exception e)
Description copied from interface:EmitterPropagates an error in the stream. This methods sends an error signal, no messages can be sent once this method is called. 
- 
isCancelled
public boolean isCancelled()
- Specified by:
 isCancelledin interfaceEmitter<T>- Returns:
 trueif the emitter has been terminated or the subscription cancelled.
 
- 
isRequested
public boolean isRequested()
- Specified by:
 isRequestedin interfaceEmitter<T>- Returns:
 trueif the subscriber accepts messages,falseotherwise. UsingEmitter.send(Object)on an emitter not expecting message would throw anIllegalStateException.
 
 - 
 
 -