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
Fields Modifier and Type Field Description static StringVERTX_CONTEXT_PROPERTYThe property used to store the (duplicated) vert.x context with the request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.vertx.core.ContextgetContext()jakarta.ws.rs.core.GenericType<?>getResponseType()voidresume()voidresume(Throwable t)voidsetCallStatsCollector(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 Detail
-
VERTX_CONTEXT_PROPERTY
static final String 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:
- Constant Field Values
-
-
Method Detail
-
suspend
void suspend()
-
resume
void resume()
-
resume
void resume(Throwable t)
-
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-
-
-