All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.reactor.FluxRxInvokerProvider Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha4
Show newest version
package org.jboss.resteasy.reactor;

import java.util.concurrent.ExecutorService;
import javax.ws.rs.client.RxInvokerProvider;
import javax.ws.rs.client.SyncInvoker;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.ext.Provider;

@Provider
public class FluxRxInvokerProvider implements RxInvokerProvider
{
   WebTarget target;

   @Override
   public boolean isProviderFor(Class clazz)
   {
      return FluxRxInvoker.class.equals(clazz);
   }

   @Override
   public FluxRxInvoker getRxInvoker(SyncInvoker syncInvoker, ExecutorService executorService)
   {
      return new FluxRxInvokerImpl(syncInvoker, executorService);
   }

   public WebTarget getTarget()
   {
      return target;
   }

   public void setTarget(WebTarget target)
   {
      this.target = target;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy