Emitter
instead.@Deprecated public interface Emitter<T>
Modifier and Type | Method and Description |
---|---|
void |
complete()
Deprecated.
Completes the stream.
|
void |
error(Exception e)
Deprecated.
Propagates an error in the stream.
|
boolean |
isCancelled()
Deprecated.
|
boolean |
isRequested()
Deprecated.
|
Emitter<T> |
send(T msg)
Deprecated.
Sends a payload or a message to the stream.
|
Emitter<T> send(T msg)
msg
- the thing to send, must not be null
IllegalStateException
- if the stream does not have any pending requests, or if the stream has been
cancelled or terminated.void complete()
void error(Exception e)
e
- the exception, must not be null
boolean isCancelled()
true
if the emitter has been terminated or the subscription cancelled.boolean isRequested()
true
if the subscriber accepts messages, false
otherwise.
Using send(Object)
on an emitter not expecting message would throw an IllegalStateException
.Copyright © 2018–2021 SmallRye. All rights reserved.