@Experimental public class EmptyResponseTransformer extends Object implements ResponseFunction
ResponseFunction that is able to transform an error sequence with a HTTP 404 status, into an empty
sequence.| Constructor and Description |
|---|
EmptyResponseTransformer(RouteMatcher routeMatcher,
Predicate<Throwable> predicate) |
| Modifier and Type | Method and Description |
|---|---|
<T> Function<Mono<T>,Mono<T>> |
transform(DiscordRequest<T> request)
Transform a
Mono pipeline using the given DiscordRequest as hint for parameterization of the
resulting transformation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemptyIfNotFound, emptyIfNotFound, emptyOnErrorStatus, retryOnceOnErrorStatus, retryOnceOnErrorStatus, retryWhenpublic EmptyResponseTransformer(RouteMatcher routeMatcher, Predicate<Throwable> predicate)
public <T> Function<Mono<T>,Mono<T>> transform(DiscordRequest<T> request)
ResponseFunctionMono pipeline using the given DiscordRequest as hint for parameterization of the
resulting transformation.transform in interface ResponseFunctionT - the type of the sequencerequest - the DiscordRequest used for the targeted Mono sequenceFunction that allows immediately mapping this Mono into a target Mono instance