Class 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 java.lang.Object
    implements org.glassfish.jersey.client.spi.Connector
    Customized Jersey client connector with multi-host support.
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncHttpConnector​(int connectTimeoutMs, int readTimeoutMs, int requestTimeoutMs, int autoCertRefreshTimeSeconds, org.apache.pulsar.client.impl.conf.ClientConfigurationData conf)  
      AsyncHttpConnector​(javax.ws.rs.client.Client client, org.apache.pulsar.client.impl.conf.ClientConfigurationData conf, int autoCertRefreshTimeSeconds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.glassfish.jersey.client.ClientResponse apply​(org.glassfish.jersey.client.ClientRequest jerseyRequest)  
      java.util.concurrent.Future<?> apply​(org.glassfish.jersey.client.ClientRequest jerseyRequest, org.glassfish.jersey.client.spi.AsyncConnectorCallback callback)  
      void close()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsyncHttpConnector

        public AsyncHttpConnector​(javax.ws.rs.client.Client client,
                                  org.apache.pulsar.client.impl.conf.ClientConfigurationData conf,
                                  int autoCertRefreshTimeSeconds)
      • AsyncHttpConnector

        public AsyncHttpConnector​(int connectTimeoutMs,
                                  int readTimeoutMs,
                                  int requestTimeoutMs,
                                  int autoCertRefreshTimeSeconds,
                                  org.apache.pulsar.client.impl.conf.ClientConfigurationData conf)
    • Method Detail

      • 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 java.util.concurrent.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 java.lang.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