public class ServerConnection extends PulsarHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
TLS_HANDLER |
ctx, remoteAddress, remoteEndpointProtocolVersionMaxFrameSize, MaxMessageSize| 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, handleCloseConsumer, handleCloseProducer, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleError, handleFlow, handleGetLastMessageId, handleGetLastMessageIdSuccess, handleGetTopicsOfNamespace, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleUnsubscribechannelReadComplete, 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–2018 Apache Software Foundation. All rights reserved.