Class PartitionedProducerImpl<T>

java.lang.Object
org.apache.pulsar.client.impl.ProducerBase<T>
org.apache.pulsar.client.impl.PartitionedProducerImpl<T>
All Implemented Interfaces:
Closeable, AutoCloseable, Producer<T>

public class PartitionedProducerImpl<T> extends ProducerBase<T>
  • Field Details

    • client

      protected final PulsarClientImpl client
    • topic

      protected final String topic
    • redirectedClusterURI

      protected volatile URI redirectedClusterURI
  • Constructor Details

  • Method Details

    • getProducerName

      public String getProducerName()
    • getLastSequenceId

      public long getLastSequenceId()
    • flushAsync

      public CompletableFuture<Void> flushAsync()
    • isConnected

      public boolean isConnected()
    • getLastDisconnectedTimestamp

      public long getLastDisconnectedTimestamp()
    • closeAsync

      public CompletableFuture<Void> closeAsync()
      Specified by:
      closeAsync in interface Producer<T>
      Specified by:
      closeAsync in class ProducerBase<T>
    • getStats

      public ProducerStatsRecorderImpl getStats()
    • getProducers

      public List<ProducerImpl<T>> getProducers()
    • getPartitionsAutoUpdateFuture

      public CompletableFuture<Void> getPartitionsAutoUpdateFuture()
    • getPartitionsAutoUpdateTimeout

      public io.netty.util.Timeout getPartitionsAutoUpdateTimeout()
    • getOriginalLastSendFuture

      public CompletableFuture<Void> getOriginalLastSendFuture()
    • getNumOfPartitions

      public int getNumOfPartitions()
    • setRedirectedClusterURI

      protected void setRedirectedClusterURI(String serviceUrl, String serviceUrlTls) throws URISyntaxException
      Throws:
      URISyntaxException
    • changeToReadyState

      protected boolean changeToReadyState()
    • changeToRegisteringSchemaState

      protected boolean changeToRegisteringSchemaState()
    • getState

      protected org.apache.pulsar.client.impl.HandlerState.State getState()
    • changeToConnecting

      protected boolean changeToConnecting()
    • setState

      protected void setState(org.apache.pulsar.client.impl.HandlerState.State s)
    • getAndUpdateState

      protected org.apache.pulsar.client.impl.HandlerState.State getAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater)
    • getClient

      public PulsarClientImpl getClient()