Package discord4j.rest.response
Class RetryingTransformer
java.lang.Object
discord4j.rest.response.RetryingTransformer
- All Implemented Interfaces:
ResponseFunction
A
ResponseFunction
that is able to transform an error sequence into a retrying one.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(DiscordWebRequest request) Transform aMono
pipeline using the givenDiscordWebRequest
as hint for parameterization of the resulting transformation.
-
Constructor Details
-
RetryingTransformer
-
-
Method Details
-
transform
Description copied from interface:ResponseFunction
Transform aMono
pipeline using the givenDiscordWebRequest
as hint for parameterization of the resulting transformation.- Specified by:
transform
in interfaceResponseFunction
- Parameters:
request
- theDiscordRequest
used for the targetedMono
sequence- Returns:
- a
Function
that allows immediately mapping thisMono
into a targetMono
instance
-