Interface ResteasyReactiveClientRequestContext

  • All Superinterfaces:
    javax.ws.rs.client.ClientRequestContext
    All Known Implementing Classes:
    ClientRequestContextImpl

    public interface ResteasyReactiveClientRequestContext
    extends javax.ws.rs.client.ClientRequestContext
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String VERTX_CONTEXT_PROPERTY
      The 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.Context getContext()  
      javax.ws.rs.core.GenericType<?> getResponseType()  
      void resume()  
      void resume​(Throwable t)  
      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 suspend()  
      • Methods inherited from interface javax.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, 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()
      • getContext

        io.vertx.core.Context getContext()
        Returns:
        the captured or created duplicated context. See VERTX_CONTEXT_PROPERTY for details.
      • getResponseType

        javax.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 -