Class AbstractRxInvoker<T>

  • Type Parameters:
    T - the asynchronous/event-based completion aware type. The given type should be parametrized with the actual response type.
    All Implemented Interfaces:
    jakarta.ws.rs.client.RxInvoker<T>

    public abstract class AbstractRxInvoker<T>
    extends Object
    implements jakarta.ws.rs.client.RxInvoker<T>
    Default implementation of reactive invoker. Extensions of this class are supposed to implement method(String, Entity, Class) and method(String, Entity, GenericType) methods to which implementations of the rest of the methods from the contract delegate to.
    Since:
    2.26
    Author:
    Michal Gajdos
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      T delete()  
      <R> T delete​(jakarta.ws.rs.core.GenericType<R> responseType)  
      <R> T delete​(Class<R> responseType)  
      T get()  
      <R> T get​(jakarta.ws.rs.core.GenericType<R> responseType)  
      <R> T get​(Class<R> responseType)  
      protected ExecutorService getExecutorService()
      Return executorService service this reactive invoker was initialized with.
      protected jakarta.ws.rs.client.SyncInvoker getSyncInvoker()
      Return invocation builder this reactive invoker was initialized with.
      T head()  
      T method​(String name)  
      T method​(String name, jakarta.ws.rs.client.Entity<?> entity)  
      abstract <R> T method​(String name, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<R> responseType)  
      abstract <R> T method​(String name, jakarta.ws.rs.client.Entity<?> entity, Class<R> responseType)  
      <R> T method​(String name, jakarta.ws.rs.core.GenericType<R> responseType)  
      <R> T method​(String name, Class<R> responseType)  
      T options()  
      <R> T options​(jakarta.ws.rs.core.GenericType<R> responseType)  
      <R> T options​(Class<R> responseType)  
      T post​(jakarta.ws.rs.client.Entity<?> entity)  
      <R> T post​(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<R> type)  
      <R> T post​(jakarta.ws.rs.client.Entity<?> entity, Class<R> clazz)  
      T put​(jakarta.ws.rs.client.Entity<?> entity)  
      <R> T put​(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<R> type)  
      <R> T put​(jakarta.ws.rs.client.Entity<?> entity, Class<R> clazz)  
      T trace()  
      <R> T trace​(jakarta.ws.rs.core.GenericType<R> responseType)  
      <R> T trace​(Class<R> responseType)  
      • Methods inherited from interface jakarta.ws.rs.client.RxInvoker

        delete, delete, delete, get, get, get, head, method, method, options, options, options, post, post, post, put, put, put, trace, trace, trace
    • Constructor Detail

      • AbstractRxInvoker

        public AbstractRxInvoker​(jakarta.ws.rs.client.SyncInvoker syncInvoker,
                                 ExecutorService executor)
    • Method Detail

      • getSyncInvoker

        protected jakarta.ws.rs.client.SyncInvoker getSyncInvoker()
        Return invocation builder this reactive invoker was initialized with.
        Returns:
        non-null invocation builder.
      • getExecutorService

        protected ExecutorService getExecutorService()
        Return executorService service this reactive invoker was initialized with.
        Returns:
        executorService service instance or null.
      • method

        public T method​(String name)
        Specified by:
        method in interface jakarta.ws.rs.client.RxInvoker<T>
      • method

        public <R> T method​(String name,
                            Class<R> responseType)
        Specified by:
        method in interface jakarta.ws.rs.client.RxInvoker<T>
      • method

        public <R> T method​(String name,
                            jakarta.ws.rs.core.GenericType<R> responseType)
        Specified by:
        method in interface jakarta.ws.rs.client.RxInvoker<T>
      • method

        public T method​(String name,
                        jakarta.ws.rs.client.Entity<?> entity)
        Specified by:
        method in interface jakarta.ws.rs.client.RxInvoker<T>
      • get

        public T get()
      • get

        public <R> T get​(Class<R> responseType)
      • get

        public <R> T get​(jakarta.ws.rs.core.GenericType<R> responseType)
      • put

        public T put​(jakarta.ws.rs.client.Entity<?> entity)
      • put

        public <R> T put​(jakarta.ws.rs.client.Entity<?> entity,
                         Class<R> clazz)
      • put

        public <R> T put​(jakarta.ws.rs.client.Entity<?> entity,
                         jakarta.ws.rs.core.GenericType<R> type)
      • post

        public T post​(jakarta.ws.rs.client.Entity<?> entity)
      • post

        public <R> T post​(jakarta.ws.rs.client.Entity<?> entity,
                          Class<R> clazz)
      • post

        public <R> T post​(jakarta.ws.rs.client.Entity<?> entity,
                          jakarta.ws.rs.core.GenericType<R> type)
      • delete

        public T delete()
      • delete

        public <R> T delete​(Class<R> responseType)
      • delete

        public <R> T delete​(jakarta.ws.rs.core.GenericType<R> responseType)
      • head

        public T head()
      • options

        public T options()
      • options

        public <R> T options​(Class<R> responseType)
      • options

        public <R> T options​(jakarta.ws.rs.core.GenericType<R> responseType)
      • trace

        public T trace()
      • trace

        public <R> T trace​(Class<R> responseType)
      • trace

        public <R> T trace​(jakarta.ws.rs.core.GenericType<R> responseType)
      • method

        public abstract <R> T method​(String name,
                                     jakarta.ws.rs.client.Entity<?> entity,
                                     Class<R> responseType)
      • method

        public abstract <R> T method​(String name,
                                     jakarta.ws.rs.client.Entity<?> entity,
                                     jakarta.ws.rs.core.GenericType<R> responseType)