Class AsyncHttpConnector

java.lang.Object
org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector
All Implemented Interfaces:
org.glassfish.jersey.client.spi.Connector, org.glassfish.jersey.process.Inflector<org.glassfish.jersey.client.ClientRequest,org.glassfish.jersey.client.ClientResponse>

public class AsyncHttpConnector extends Object implements org.glassfish.jersey.client.spi.Connector
Customized Jersey client connector with multi-host support.
  • Constructor Details

    • AsyncHttpConnector

      public AsyncHttpConnector(javax.ws.rs.client.Client client, ClientConfigurationData conf, int autoCertRefreshTimeSeconds)
    • AsyncHttpConnector

      public AsyncHttpConnector(int connectTimeoutMs, int readTimeoutMs, int requestTimeoutMs, int autoCertRefreshTimeSeconds, ClientConfigurationData conf)
  • Method Details

    • apply

      public org.glassfish.jersey.client.ClientResponse apply(org.glassfish.jersey.client.ClientRequest jerseyRequest)
      Specified by:
      apply in interface org.glassfish.jersey.client.spi.Connector
      Specified by:
      apply in interface org.glassfish.jersey.process.Inflector<org.glassfish.jersey.client.ClientRequest,org.glassfish.jersey.client.ClientResponse>
    • apply

      public Future<?> apply(org.glassfish.jersey.client.ClientRequest jerseyRequest, org.glassfish.jersey.client.spi.AsyncConnectorCallback callback)
      Specified by:
      apply in interface org.glassfish.jersey.client.spi.Connector
    • getName

      public String getName()
      Specified by:
      getName in interface org.glassfish.jersey.client.spi.Connector
    • close

      public void close()
      Specified by:
      close in interface org.glassfish.jersey.client.spi.Connector