public class ServerConnection extends PulsarHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
TLS_HANDLER |
ctx, remoteAddress, remoteEndpointProtocolVersionproxyMessage| Constructor and Description |
|---|
ServerConnection(DiscoveryService discoveryService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleConnect(PulsarApi.CommandConnect connect)
handles connect request and sends
State.Connected ack to client |
protected void |
handleLookup(PulsarApi.CommandLookupTopic lookup)
handles discovery request from client ands sends next active broker address
|
protected void |
handlePartitionMetadataRequest(PulsarApi.CommandPartitionedTopicMetadata partitionMetadata) |
protected boolean |
isHandshakeCompleted() |
cancelKeepAliveTask, channelActive, channelInactive, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceivedchannelRead, handleAck, handleActiveConsumerChange, handleAddPartitionToTxn, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxn, handleAddSubscriptionToTxnResponse, handleAuthChallenge, handleAuthResponse, handleCloseConsumer, handleCloseProducer, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleEndTxn, handleEndTxnOnPartition, handleEndTxnOnPartitionResponse, handleEndTxnOnSubscription, handleEndTxnOnSubscriptionResponse, handleEndTxnResponse, handleError, handleFlow, handleGetLastMessageId, handleGetLastMessageIdSuccess, handleGetOrCreateSchema, handleGetOrCreateSchemaResponse, handleGetSchema, handleGetSchemaResponse, handleGetTopicsOfNamespace, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handleNewTxn, handleNewTxnResponse, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleUnsubscribe, interceptCommandchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final String TLS_HANDLER
public ServerConnection(DiscoveryService discoveryService)
protected void handleConnect(PulsarApi.CommandConnect connect)
State.Connected ack to clienthandleConnect in class PulsarDecoderprotected void handlePartitionMetadataRequest(PulsarApi.CommandPartitionedTopicMetadata partitionMetadata)
handlePartitionMetadataRequest in class PulsarDecoderprotected void handleLookup(PulsarApi.CommandLookupTopic lookup)
handleLookup in class PulsarDecoderprotected boolean isHandshakeCompleted()
isHandshakeCompleted in class PulsarHandlerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.