public class StepVerifierOptions extends Object
StepVerifier, including the initial request amount,
VirtualTimeScheduler supplier and toggles for some checks.| Modifier and Type | Method and Description |
|---|---|
StepVerifierOptions |
checkUnderRequesting(boolean enabled)
Activate or deactivate the
StepVerifier check of request amount
being too low. |
static StepVerifierOptions |
create()
Create a new default push of options for a
StepVerifier that can be tuned
using the various available non-getter methods (which can be chained). |
long |
getInitialRequest() |
Supplier<? extends VirtualTimeScheduler> |
getVirtualTimeSchedulerSupplier() |
StepVerifierOptions |
initialRequest(long initialRequest)
Set the amount the
StepVerifier should request initially. |
boolean |
isCheckUnderRequesting() |
StepVerifierOptions |
virtualTimeSchedulerSupplier(Supplier<? extends VirtualTimeScheduler> vtsLookup)
Set a supplier for a
VirtualTimeScheduler, which is mandatory for a
StepVerifier to work with virtual time. |
public static StepVerifierOptions create()
StepVerifier that can be tuned
using the various available non-getter methods (which can be chained).public StepVerifierOptions checkUnderRequesting(boolean enabled)
StepVerifier check of request amount
being too low. Defauts to true.enabled - true if the check should be enabled.public boolean isCheckUnderRequesting()
StepVerifier receiving these options should activate
the check of request amount being too low.public StepVerifierOptions initialRequest(long initialRequest)
StepVerifier should request initially. Defaults to
unbounded request (Long.MAX_VALUE).initialRequest - the initial request amount.public long getInitialRequest()
StepVerifier
receiving these options.public StepVerifierOptions virtualTimeSchedulerSupplier(Supplier<? extends VirtualTimeScheduler> vtsLookup)
VirtualTimeScheduler, which is mandatory for a
StepVerifier to work with virtual time. Defaults to null.vtsLookup - the supplier of VirtualTimeScheduler to use.@Nullable public Supplier<? extends VirtualTimeScheduler> getVirtualTimeSchedulerSupplier()
VirtualTimeScheduler to be used by the
StepVerifier receiving these options.