A blackholeter rejects/fails by returning a promise from a service which will never be fulfilled.
A blackholeter rejects/fails by returning a promise from a service which will never be fulfilled.
A blackholeter rejects/fails by returning a promise from a service which will never be fulfilled.
This is useful for testing timeout response. Note that the underlying service IS called in this variant, but the result is DISCARDED. Useful for checking for idempotent behavior.
[0,1] whre 1 is 100% blackhole mode
Like the reject filter, but will throw exceptions AFTER the service has been called.
Randomly creates a Future.exception with the specified exception class before calling downstream filters and services.
Randomly creates a Future.exception with the specified exception class before calling downstream filters and services. Probability is in [0,1] where 0 means no failures.
A class to reject with. Must have a no-arguments constructor.
A random seed, otherwise a deterministic seed is used.
A blackholeter rejects/fails by returning a promise from a service which will never be fulfilled.
This is useful for testing timeout response. Note that the underlying service is NOT called in this variant.
[0,1], where 1 is 100% blackhole mode