public interface EmitterBehavior
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Sends the completion event to the channel indicating that no other events will be sent afterward.
|
void |
error(Exception e)
Sends a failure event to the channel.
|
boolean |
hasRequests() |
boolean |
isCancelled() |
void complete()
void error(Exception e)
e - the exception, must not be nullboolean isCancelled()
true if the emitter has been terminated or the subscription cancelled.boolean hasRequests()
true if one or more subscribers request messages from the corresponding channel where the emitter
connects to,
return false otherwise.Copyright © 2018–2020 SmallRye. All rights reserved.