Interface Emitter<T>
- 
- All Known Implementing Classes:
 LegacyEmitterImpl
@Deprecated public interface Emitter<T>
Deprecated.UseEmitterinstead. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcomplete()Deprecated.Completes the stream.voiderror(Exception e)Deprecated.Propagates an error in the stream.booleanisCancelled()Deprecated.booleanisRequested()Deprecated.Emitter<T>send(T msg)Deprecated.Sends a payload or a message to the stream. 
 - 
 
- 
- 
Method Detail
- 
send
Emitter<T> send(T msg)
Deprecated.Sends a payload or a message to the stream.- Parameters:
 msg- the thing to send, must not benull- Returns:
 - the current emitter
 - Throws:
 IllegalStateException- if the stream does not have any pending requests, or if the stream has been cancelled or terminated.
 
- 
complete
void complete()
Deprecated.Completes the stream. This method sends the completion signal, no messages can be sent once this method is called. 
- 
error
void error(Exception e)
Deprecated.Propagates an error in the stream. This methods sends an error signal, no messages can be sent once this method is called.- Parameters:
 e- the exception, must not benull
 
- 
isCancelled
boolean isCancelled()
Deprecated.- Returns:
 trueif the emitter has been terminated or the subscription cancelled.
 
- 
isRequested
boolean isRequested()
Deprecated.- Returns:
 trueif the subscriber accepts messages,falseotherwise. Usingsend(Object)on an emitter not expecting message would throw anIllegalStateException.
 
 - 
 
 -