Interface ResteasyReactiveClientRequestContext
- All Superinterfaces:
jakarta.ws.rs.client.ClientRequestContext
- All Known Implementing Classes:
ClientRequestContextImpl
public interface ResteasyReactiveClientRequestContext
extends jakarta.ws.rs.client.ClientRequestContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property used to store the (duplicated) vert.x context with the request. -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.Contextjakarta.ws.rs.ext.Providersjakarta.ws.rs.core.GenericType<?>voidresume()voidvoidsetCallStatsCollector(io.smallrye.stork.api.ServiceInstance instance) This method is used to collect statistics about service instance calls in order to influence a Load Balancer algorithm depending on these statistics.voidsuspend()Methods inherited from interface jakarta.ws.rs.client.ClientRequestContext
abortWith, getAcceptableLanguages, getAcceptableMediaTypes, getClient, getConfiguration, getCookies, getDate, getEntity, getEntityAnnotations, getEntityClass, getEntityStream, getEntityType, getHeaders, getHeaderString, getLanguage, getMediaType, getMethod, getProperty, getPropertyNames, getStringHeaders, getUri, hasEntity, hasProperty, removeProperty, setEntity, setEntity, setEntityStream, setMethod, setProperty, setUri
-
Field Details
-
VERTX_CONTEXT_PROPERTY
The property used to store the (duplicated) vert.x context with the request. This context is captured when the ResteasyReactiveClientRequestContext instance is created. If, at that moment, there is no context, a new duplicated context is created. If, we are executed on a root context, it creates a new duplicated context from it. Otherwise, (we are already on a duplicated context), it captures it.- See Also:
-
-
Method Details
-
suspend
void suspend() -
resume
void resume() -
resume
-
getProviders
jakarta.ws.rs.ext.Providers getProviders()- Returns:
- the context where to lookup all the provider instances of the current client.
-
getContext
io.vertx.core.Context getContext()- Returns:
- the captured or created duplicated context. See
VERTX_CONTEXT_PROPERTYfor details.
-
getResponseType
jakarta.ws.rs.core.GenericType<?> getResponseType() -
setCallStatsCollector
void setCallStatsCollector(io.smallrye.stork.api.ServiceInstance instance) This method is used to collect statistics about service instance calls in order to influence a Load Balancer algorithm depending on these statistics. You don't need to call this method in any case. It will be used by Stork when such a load balancer algorithm will be configured.- Parameters:
instance-
-