Interface AsyncApiVersionResolver
- All Superinterfaces:
ApiVersionResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extension of
ApiVersionResolver for implementations that resolve the
version in an asynchronous way.- Since:
- 7.0.3
- Author:
- Rossen Stoyanchev, Jonathan Kaplan
-
Method Summary
Modifier and TypeMethodDescriptionresolveVersion(ServerWebExchange exchange) Resolve the version for the given exchange.resolveVersionAsync(ServerWebExchange exchange) Resolve the version for the given exchange.
-
Method Details
-
resolveVersionAsync
Resolve the version for the given exchange.- Parameters:
exchange- the current exchange- Returns:
Monoemitting the version value, or an emptyMono
-
resolveVersion
Description copied from interface:ApiVersionResolverResolve the version for the given exchange.Implementations of this method are expected to be non-blocking. If you need to resolve the version asynchronously, please implement the
AsyncApiVersionResolversubinterface instead.- Specified by:
resolveVersionin interfaceApiVersionResolver- Parameters:
exchange- the current exchange- Returns:
- the version value, or
nullif not found
-