public class PulsarCommandSenderImpl extends Object implements PulsarCommandSender
| Constructor and Description |
|---|
PulsarCommandSenderImpl(BrokerInterceptor interceptor,
ServerCnx cnx) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendActiveConsumerChange(long consumerId,
boolean isActive) |
void |
sendConnectedResponse(int clientProtocolVersion,
int maxMessageSize) |
void |
sendError(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String message) |
void |
sendErrorResponse(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String message) |
void |
sendGetOrCreateSchemaErrorResponse(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMessage) |
void |
sendGetOrCreateSchemaResponse(long requestId,
org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) |
void |
sendGetSchemaErrorResponse(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMessage) |
void |
sendGetSchemaResponse(long requestId,
org.apache.pulsar.common.schema.SchemaInfo schema,
org.apache.pulsar.common.protocol.schema.SchemaVersion version) |
void |
sendGetTopicsOfNamespaceResponse(List<String> topics,
long requestId) |
void |
sendLookupResponse(org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMsg,
long requestId) |
void |
sendLookupResponse(String brokerServiceUrl,
String brokerServiceUrlTls,
boolean authoritative,
org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType response,
long requestId,
boolean proxyThroughServiceUrl) |
io.netty.channel.ChannelPromise |
sendMessagesToConsumer(long consumerId,
String topicName,
Subscription subscription,
int partitionIdx,
List<Entry> entries,
EntryBatchSizes batchSizes,
EntryBatchIndexesAcks batchIndexesAcks,
RedeliveryTracker redeliveryTracker) |
void |
sendPartitionMetadataResponse(int partitions,
long requestId) |
void |
sendPartitionMetadataResponse(org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMsg,
long requestId) |
void |
sendProducerSuccessResponse(long requestId,
String producerName,
long lastSequenceId,
org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) |
void |
sendProducerSuccessResponse(long requestId,
String producerName,
org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) |
void |
sendReachedEndOfTopic(long consumerId) |
void |
sendSendError(long producerId,
long sequenceId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMsg) |
void |
sendSendReceiptResponse(long producerId,
long sequenceId,
long highestId,
long ledgerId,
long entryId) |
void |
sendSuccess(long requestId) |
void |
sendSuccessResponse(long requestId) |
public PulsarCommandSenderImpl(BrokerInterceptor interceptor, ServerCnx cnx)
public void sendPartitionMetadataResponse(org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMsg,
long requestId)
sendPartitionMetadataResponse in interface PulsarCommandSenderpublic void sendPartitionMetadataResponse(int partitions,
long requestId)
sendPartitionMetadataResponse in interface PulsarCommandSenderpublic void sendSuccessResponse(long requestId)
sendSuccessResponse in interface PulsarCommandSenderpublic void sendErrorResponse(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String message)
sendErrorResponse in interface PulsarCommandSenderpublic void sendProducerSuccessResponse(long requestId,
String producerName,
org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion)
sendProducerSuccessResponse in interface PulsarCommandSenderpublic void sendProducerSuccessResponse(long requestId,
String producerName,
long lastSequenceId,
org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion)
sendProducerSuccessResponse in interface PulsarCommandSenderpublic void sendSendReceiptResponse(long producerId,
long sequenceId,
long highestId,
long ledgerId,
long entryId)
sendSendReceiptResponse in interface PulsarCommandSenderpublic void sendSendError(long producerId,
long sequenceId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMsg)
sendSendError in interface PulsarCommandSenderpublic void sendGetTopicsOfNamespaceResponse(List<String> topics, long requestId)
sendGetTopicsOfNamespaceResponse in interface PulsarCommandSenderpublic void sendGetSchemaResponse(long requestId,
org.apache.pulsar.common.schema.SchemaInfo schema,
org.apache.pulsar.common.protocol.schema.SchemaVersion version)
sendGetSchemaResponse in interface PulsarCommandSenderpublic void sendGetSchemaErrorResponse(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMessage)
sendGetSchemaErrorResponse in interface PulsarCommandSenderpublic void sendGetOrCreateSchemaResponse(long requestId,
org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion)
sendGetOrCreateSchemaResponse in interface PulsarCommandSenderpublic void sendGetOrCreateSchemaErrorResponse(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMessage)
sendGetOrCreateSchemaErrorResponse in interface PulsarCommandSenderpublic void sendConnectedResponse(int clientProtocolVersion,
int maxMessageSize)
sendConnectedResponse in interface PulsarCommandSenderpublic void sendLookupResponse(String brokerServiceUrl, String brokerServiceUrlTls, boolean authoritative, org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType response, long requestId, boolean proxyThroughServiceUrl)
sendLookupResponse in interface PulsarCommandSenderpublic void sendLookupResponse(org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String errorMsg,
long requestId)
sendLookupResponse in interface PulsarCommandSenderpublic void sendActiveConsumerChange(long consumerId,
boolean isActive)
sendActiveConsumerChange in interface PulsarCommandSenderpublic void sendSuccess(long requestId)
sendSuccess in interface PulsarCommandSenderpublic void sendError(long requestId,
org.apache.pulsar.common.api.proto.PulsarApi.ServerError error,
String message)
sendError in interface PulsarCommandSenderpublic void sendReachedEndOfTopic(long consumerId)
sendReachedEndOfTopic in interface PulsarCommandSenderpublic io.netty.channel.ChannelPromise sendMessagesToConsumer(long consumerId,
String topicName,
Subscription subscription,
int partitionIdx,
List<Entry> entries,
EntryBatchSizes batchSizes,
EntryBatchIndexesAcks batchIndexesAcks,
RedeliveryTracker redeliveryTracker)
sendMessagesToConsumer in interface PulsarCommandSenderCopyright © 2017–2021 Apache Software Foundation. All rights reserved.