T
- the value type emittedpublic interface MonoEmitter<T>
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete without any value.
|
void |
complete(T value)
Complete with the given value.
|
void |
fail(java.lang.Throwable e)
Terminate with the give exception
|
void |
setCancellation(Cancellation c)
Sets a cancellation callback triggered by
downstreams cancel().
|
void complete()
Calling this method multiple times or after the other terminating methods has no effect.
void complete(T value)
Calling this method multiple times or after the other terminating methods has no effect.
value
- the value to complete withvoid fail(java.lang.Throwable e)
Calling this method multiple times or after the other terminating methods has no effect.
e
- the exception to complete withvoid setCancellation(Cancellation c)
Calling this method more than once has no effect.
c
- the cancellation callback