类 ProducerBase<T>
java.lang.Object
org.apache.pulsar.client.impl.ProducerBase<T>
- 所有已实现的接口:
Closeable,AutoCloseable,Producer<T>
- 直接已知子类:
PartitionedProducerImpl,ProducerImpl
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected final PulsarClientImplprotected final ProducerConfigurationDataprotected final ProducerInterceptorsprotected ProducerBase.MultiSchemaModeprotected final CompletableFuture<Producer<T>>protected URIprotected final ConcurrentOpenHashMap<SchemaHash,byte[]> protected final String -
构造器概要
构造器限定符构造器说明protectedProducerBase(PulsarClientImpl client, String topic, ProducerConfigurationData conf, CompletableFuture<Producer<T>> producerCreatedFuture, Schema<T> schema, ProducerInterceptors interceptors) -
方法概要
修饰符和类型方法说明protected Message<?>beforeSend(Message<?> message) protected booleanprotected booleanprotected booleanvoidclose()abstract CompletableFuture<Void>voidflush()protected org.apache.pulsar.client.impl.HandlerState.StategetAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater) protected org.apache.pulsar.client.impl.HandlerState.StategetState()getTopic()<V> TypedMessageBuilder<V>newMessage(Schema<V> schema) newMessage(Transaction txn) protected voidonPartitionsChange(String topicName, int partitions) protected voidonSendAcknowledgement(Message<?> message, MessageId msgId, Throwable exception) protected voidsetRedirectedClusterURI(String serviceUrl, String serviceUrlTls) protected voidsetState(org.apache.pulsar.client.impl.HandlerState.State s) toString()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.Producer
flushAsync, getLastDisconnectedTimestamp, getLastSequenceId, getNumOfPartitions, getProducerName, getStats, isConnected
-
字段详细资料
-
producerCreatedFuture
-
conf
-
schema
-
interceptors
-
schemaCache
-
multiSchemaMode
-
client
-
topic
-
redirectedClusterURI
-
-
构造器详细资料
-
ProducerBase
protected ProducerBase(PulsarClientImpl client, String topic, ProducerConfigurationData conf, CompletableFuture<Producer<T>> producerCreatedFuture, Schema<T> schema, ProducerInterceptors interceptors)
-
-
方法详细资料
-
send
- 指定者:
send在接口中Producer<T>- 抛出:
PulsarClientException
-
sendAsync
-
sendAsync
-
newMessage
- 指定者:
newMessage在接口中Producer<T>
-
newMessage
- 指定者:
newMessage在接口中Producer<T>
-
newMessage
- 指定者:
newMessage在接口中Producer<T>
-
send
-
flush
- 指定者:
flush在接口中Producer<T>- 抛出:
PulsarClientException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 指定者:
close在接口中Producer<T>- 抛出:
PulsarClientException
-
closeAsync
- 指定者:
closeAsync在接口中Producer<T>
-
getTopic
-
getConfiguration
-
producerCreatedFuture
-
beforeSend
-
onSendAcknowledgement
-
onPartitionsChange
-
toString
-
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
-