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 final String
    The property used to store the (duplicated) vert.x context with the request.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.Context
     
    jakarta.ws.rs.ext.Providers
     
    jakarta.ws.rs.core.GenericType<?>
     
    void
     
    void
     
    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.
    void
     

    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

      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:
  • Method Details

    • suspend

      void suspend()
    • resume

      void resume()
    • resume

      void resume(Throwable t)
    • 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_PROPERTY for 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 -