Class ControlledClusterFailover

java.lang.Object
org.apache.pulsar.client.impl.ControlledClusterFailover
All Implemented Interfaces:
AutoCloseable, org.apache.pulsar.client.api.ServiceUrlProvider

public class ControlledClusterFailover extends Object implements org.apache.pulsar.client.api.ServiceUrlProvider
  • Method Details

    • initialize

      public void initialize(org.apache.pulsar.client.api.PulsarClient client)
      Specified by:
      initialize in interface org.apache.pulsar.client.api.ServiceUrlProvider
    • getCurrentPulsarServiceUrl

      public String getCurrentPulsarServiceUrl()
    • getRequestBuilder

      protected org.asynchttpclient.BoundRequestBuilder getRequestBuilder()
    • fetchControlledConfiguration

      protected ControlledClusterFailover.ControlledConfiguration fetchControlledConfiguration() throws IOException
      Throws:
      IOException
    • getServiceUrl

      public String getServiceUrl()
      Specified by:
      getServiceUrl in interface org.apache.pulsar.client.api.ServiceUrlProvider
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.pulsar.client.api.ServiceUrlProvider
    • builder

      public static org.apache.pulsar.client.api.ControlledClusterFailoverBuilder builder()