public static class ReactiveAdapter.Descriptor extends Object
Constructor and Description |
---|
Descriptor(boolean isMultiValue,
boolean canBeEmpty,
boolean isNoValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMultiValue()
Return
true if the adaptee implies 0..N values can be produced
and is therefore a good fit to adapt to Flux . |
boolean |
isNoValue()
Return
true if the adaptee implies no values will be produced,
i.e. |
boolean |
supportsEmpty()
Return
true if the adaptee can complete without values. |
public Descriptor(boolean isMultiValue, boolean canBeEmpty, boolean isNoValue)
public boolean isMultiValue()
true
if the adaptee implies 0..N values can be produced
and is therefore a good fit to adapt to Flux
. A false
return value implies the adaptee will produce 1 value at most and is
therefore a good fit for Mono
.public boolean supportsEmpty()
true
if the adaptee can complete without values.public boolean isNoValue()
true
if the adaptee implies no values will be produced,
i.e. providing only completion or error signal.