public class PartitionedProducerImpl<T> extends ProducerBase<T>
ProducerBase.MultiSchemaMode| Modifier and Type | Field and Description |
|---|---|
protected PulsarClientImpl |
client |
protected String |
topic |
conf, interceptors, multiSchemaMode, producerCreatedFuture, schema, schemaCache| Constructor and Description |
|---|
PartitionedProducerImpl(PulsarClientImpl client,
String topic,
ProducerConfigurationData conf,
int numPartitions,
CompletableFuture<Producer<T>> producerCreatedFuture,
Schema<T> schema,
ProducerInterceptors interceptors) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
changeToReadyState() |
protected boolean |
changeToRegisteringSchemaState() |
CompletableFuture<Void> |
closeAsync() |
CompletableFuture<Void> |
flushAsync() |
protected org.apache.pulsar.client.impl.HandlerState.State |
getAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater) |
PulsarClientImpl |
getClient() |
long |
getLastDisconnectedTimestamp() |
long |
getLastSequenceId() |
io.netty.util.Timeout |
getPartitionsAutoUpdateTimeout() |
String |
getProducerName() |
List<ProducerImpl<T>> |
getProducers() |
protected org.apache.pulsar.client.impl.HandlerState.State |
getState() |
ProducerStatsRecorderImpl |
getStats() |
boolean |
isConnected() |
protected void |
setState(org.apache.pulsar.client.impl.HandlerState.State s) |
beforeSend, close, flush, getConfiguration, getTopic, newMessage, newMessage, newMessage, onSendAcknowledgement, producerCreatedFuture, send, send, sendAsync, sendAsync, toStringprotected final PulsarClientImpl client
protected final String topic
public PartitionedProducerImpl(PulsarClientImpl client, String topic, ProducerConfigurationData conf, int numPartitions, CompletableFuture<Producer<T>> producerCreatedFuture, Schema<T> schema, ProducerInterceptors interceptors)
public String getProducerName()
public long getLastSequenceId()
public CompletableFuture<Void> flushAsync()
public boolean isConnected()
public long getLastDisconnectedTimestamp()
public CompletableFuture<Void> closeAsync()
closeAsync in interface Producer<T>closeAsync in class ProducerBase<T>public ProducerStatsRecorderImpl getStats()
public List<ProducerImpl<T>> getProducers()
public io.netty.util.Timeout getPartitionsAutoUpdateTimeout()
protected boolean changeToReadyState()
protected boolean changeToRegisteringSchemaState()
protected org.apache.pulsar.client.impl.HandlerState.State getState()
protected void setState(org.apache.pulsar.client.impl.HandlerState.State s)
protected org.apache.pulsar.client.impl.HandlerState.State getAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater)
public PulsarClientImpl getClient()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.