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