@Internal public class CompletableFutureBodyBinder extends DefaultBodyAnnotationBinder<CompletableFuture> implements NonBlockingBodyArgumentBinder<CompletableFuture>
NonBlockingBodyArgumentBinder
that handles CompletableFuture
instances.ArgumentBinder.BindingResult<T>
conversionService
Constructor and Description |
---|
CompletableFutureBodyBinder(HttpContentProcessorResolver httpContentProcessorResolver,
ConversionService conversionService) |
Modifier and Type | Method and Description |
---|---|
Argument<CompletableFuture> |
argumentType() |
ArgumentBinder.BindingResult<CompletableFuture> |
bind(ArgumentConversionContext<CompletableFuture> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
List<Class<?>> |
superTypes()
Returns additional super types.
|
getAnnotationType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationType
of
public CompletableFutureBodyBinder(HttpContentProcessorResolver httpContentProcessorResolver, ConversionService conversionService)
httpContentProcessorResolver
- The http content processor resolverconversionService
- The conversion service@NonNull public List<Class<?>> superTypes()
TypedRequestArgumentBinder
superTypes
in interface TypedRequestArgumentBinder<CompletableFuture>
public Argument<CompletableFuture> argumentType()
argumentType
in interface TypeArgumentBinder<CompletableFuture,HttpRequest<?>>
public ArgumentBinder.BindingResult<CompletableFuture> bind(ArgumentConversionContext<CompletableFuture> context, HttpRequest<?> source)
ArgumentBinder
bind
in interface ArgumentBinder<CompletableFuture,HttpRequest<?>>
bind
in class DefaultBodyAnnotationBinder<CompletableFuture>
context
- The ArgumentConversionContext
source
- The sourceOptional
of the value. If no binding was possible Optional.empty()