public class ProxyConnection extends org.apache.pulsar.common.protocol.PulsarHandler implements io.netty.util.concurrent.FutureListener<Void>
ctx, remoteAddress, remoteEndpointProtocolVersion| Constructor and Description |
|---|
ProxyConnection(ProxyService proxyService,
Supplier<io.netty.handler.ssl.SslHandler> sslHandlerSupplier) |
cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceivedhandleAck, handleActiveConsumerChange, handleAddPartitionToTxn, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxn, handleAddSubscriptionToTxnResponse, handleAuthChallenge, handleCloseConsumer, handleCloseProducer, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleEndTxn, handleEndTxnOnPartition, handleEndTxnOnPartitionResponse, handleEndTxnOnSubscription, handleEndTxnOnSubscriptionResponse, handleEndTxnResponse, handleError, handleFlow, handleGetLastMessageId, handleGetLastMessageIdSuccess, handleGetOrCreateSchema, handleGetOrCreateSchemaResponse, handleGetSchemaResponse, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handleNewTxn, handleNewTxnResponse, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleUnsubscribe, onCommandchannelReadComplete, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic ProxyConnection(ProxyService proxyService, Supplier<io.netty.handler.ssl.SslHandler> sslHandlerSupplier)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in interface io.netty.channel.ChannelInboundHandlerchannelRegistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered in interface io.netty.channel.ChannelInboundHandlerchannelUnregistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class org.apache.pulsar.common.protocol.PulsarHandlerExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class org.apache.pulsar.common.protocol.PulsarHandlerExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class org.apache.pulsar.common.protocol.PulsarDecoderExceptionpublic void operationComplete(io.netty.util.concurrent.Future<Void> future) throws Exception
protected void handleConnect(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect connect)
handleConnect in class org.apache.pulsar.common.protocol.PulsarDecoderprotected void handleAuthResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandAuthResponse authResponse)
handleAuthResponse in class org.apache.pulsar.common.protocol.PulsarDecoderprotected void handlePartitionMetadataRequest(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata partitionMetadata)
handlePartitionMetadataRequest in class org.apache.pulsar.common.protocol.PulsarDecoderprotected void handleGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
handleGetTopicsOfNamespace in class org.apache.pulsar.common.protocol.PulsarDecoderprotected void handleGetSchema(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetSchema commandGetSchema)
handleGetSchema in class org.apache.pulsar.common.protocol.PulsarDecoderprotected void handleLookup(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic lookup)
handleLookup in class org.apache.pulsar.common.protocol.PulsarDecoderpublic Authentication getClientAuthentication()
protected boolean isHandshakeCompleted()
isHandshakeCompleted in class org.apache.pulsar.common.protocol.PulsarHandlerCopyright © 2017–2020 Apache Software Foundation. All rights reserved.