All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
int |
brokerChecksumSupportedVersion() |
protected boolean |
changeToReadyState() |
protected boolean |
changeToRegisteringSchemaState() |
CompletableFuture<Void> |
closeAsync() |
void |
connectionFailed(PulsarClientException exception) |
void |
connectionOpened(ClientCnx cnx) |
protected ProducerImpl.OpSendMsgQueue |
createPendingMessagesQueue() |
protected io.netty.buffer.ByteBuf |
encryptMessage(MessageMetadata msgMetadata,
io.netty.buffer.ByteBuf compressedPayload) |
CompletableFuture<Void> |
flushAsync() |
protected org.apache.pulsar.client.impl.HandlerState.State |
getAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater) |
protected Commands.ChecksumType |
getChecksumType() |
PulsarClientImpl |
getClient() |
ClientCnx |
getClientCnx() |
String |
getConnectedSince() |
ConnectionHandler |
getConnectionHandler() |
String |
getConnectionId() |
long |
getDelayInMillis() |
long |
getLastDisconnectedTimestamp() |
long |
getLastSequenceId() |
int |
getPendingQueueSize() |
String |
getProducerName() |
protected org.apache.pulsar.client.impl.HandlerState.State |
getState() |
ProducerStatsRecorder |
getStats() |
boolean |
isConnected() |
boolean |
isWritable() |
protected void |
processOpSendMsg(ProducerImpl.OpSendMsg op) |
protected void |
recoverChecksumError(ClientCnx cnx,
long sequenceId)
Checks message checksum to retry if message was corrupted while sending to broker.
|
protected void |
recoverNotAllowedError(long sequenceId) |
void |
run(io.netty.util.Timeout timeout)
Process sendTimeout events
|
void |
sendAsync(Message<?> message,
SendCallback callback) |
protected ByteBufPair |
sendMessage(long producerId,
long sequenceId,
int numMessages,
MessageMetadata msgMetadata,
io.netty.buffer.ByteBuf compressedPayload) |
protected ByteBufPair |
sendMessage(long producerId,
long lowestSequenceId,
long highestSequenceId,
int numMessages,
MessageMetadata msgMetadata,
io.netty.buffer.ByteBuf compressedPayload) |
protected void |
setState(org.apache.pulsar.client.impl.HandlerState.State s) |
protected boolean |
shouldWriteOpSendMsg()
Hook method for testing.
|
void |
terminated(ClientCnx cnx) |
protected void |
triggerFlush() |
protected boolean |
verifyLocalBufferIsNotCorrupted(ProducerImpl.OpSendMsg op)
Computes checksum again and verifies it against existing checksum.
|