类 PartitionedProducerImpl<T>
java.lang.Object
org.apache.pulsar.client.impl.ProducerBase<T>
org.apache.pulsar.client.impl.PartitionedProducerImpl<T>
- 所有已实现的接口:
Closeable,AutoCloseable,Producer<T>
-
嵌套类概要
从类继承的嵌套类/接口 org.apache.pulsar.client.impl.ProducerBase
ProducerBase.MultiSchemaMode -
字段概要
字段从类继承的字段 org.apache.pulsar.client.impl.ProducerBase
conf, interceptors, multiSchemaMode, producerCreatedFuture, schema, schemaCache -
构造器概要
构造器构造器说明PartitionedProducerImpl(PulsarClientImpl client, String topic, ProducerConfigurationData conf, int numPartitions, CompletableFuture<Producer<T>> producerCreatedFuture, Schema<T> schema, ProducerInterceptors interceptors) -
方法概要
修饰符和类型方法说明protected booleanprotected booleanprotected booleanprotected org.apache.pulsar.client.impl.HandlerState.StategetAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater) longlongintio.netty.util.Timeoutprotected org.apache.pulsar.client.impl.HandlerState.StategetState()getStats()booleanprotected voidsetRedirectedClusterURI(String serviceUrl, String serviceUrlTls) protected voidsetState(org.apache.pulsar.client.impl.HandlerState.State s) 从类继承的方法 org.apache.pulsar.client.impl.ProducerBase
beforeSend, close, flush, getConfiguration, getTopic, newMessage, newMessage, newMessage, onPartitionsChange, onSendAcknowledgement, producerCreatedFuture, send, send, sendAsync, sendAsync, toString
-
字段详细资料
-
client
-
topic
-
redirectedClusterURI
-
-
构造器详细资料
-
PartitionedProducerImpl
public PartitionedProducerImpl(PulsarClientImpl client, String topic, ProducerConfigurationData conf, int numPartitions, CompletableFuture<Producer<T>> producerCreatedFuture, Schema<T> schema, ProducerInterceptors interceptors)
-
-
方法详细资料
-
getProducerName
-
getLastSequenceId
public long getLastSequenceId() -
flushAsync
-
isConnected
public boolean isConnected() -
getLastDisconnectedTimestamp
public long getLastDisconnectedTimestamp() -
closeAsync
- 指定者:
closeAsync在接口中Producer<T>- 指定者:
closeAsync在类中ProducerBase<T>
-
getStats
-
getProducers
-
getPartitionsAutoUpdateFuture
-
getPartitionsAutoUpdateTimeout
public io.netty.util.Timeout getPartitionsAutoUpdateTimeout() -
getOriginalLastSendFuture
-
getNumOfPartitions
public int getNumOfPartitions() -
setRedirectedClusterURI
protected void setRedirectedClusterURI(String serviceUrl, String serviceUrlTls) 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
-