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