Class ProxyClientCnx

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class ProxyClientCnx
    extends org.apache.pulsar.client.impl.ClientCnx
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.pulsar.client.impl.ClientCnx

        org.apache.pulsar.client.impl.ClientCnx.State
      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Field Summary

      • Fields inherited from class org.apache.pulsar.client.impl.ClientCnx

        authentication, authenticationDataProvider, protocolVersion, proxyToTargetBrokerAddress, remoteHostName, state
      • Fields inherited from class org.apache.pulsar.common.protocol.PulsarHandler

        ctx
      • Fields inherited from class org.apache.pulsar.common.protocol.PulsarDecoder

        proxyMessage
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyClientCnx​(org.apache.pulsar.client.impl.conf.ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup, java.lang.String clientAuthRole, org.apache.pulsar.common.api.AuthData clientAuthData, java.lang.String clientAuthMethod, int protocolVersion, boolean forwardClientAuthData, ProxyConnection proxyConnection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void handleAuthChallenge​(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge)  
      protected io.netty.buffer.ByteBuf newConnectCommand()  
      • Methods inherited from class org.apache.pulsar.client.impl.ClientCnx

        channelActive, channelInactive, close, closeWithException, ctx, exceptionCaught, getAuthenticationDataProvider, getLastDisconnectedTimestamp, getMaxMessageSize, getPendingRequests, getPulsarClientException, handleAckResponse, handleActiveConsumerChange, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxnResponse, handleCloseConsumer, handleCloseProducer, handleConnected, handleEndTxnOnPartitionResponse, handleEndTxnOnSubscriptionResponse, handleEndTxnResponse, handleError, handleGetLastMessageIdSuccess, handleGetOrCreateSchemaResponse, handleGetSchemaResponse, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handleNewTxnResponse, handlePartitionResponse, handleProducerSuccess, handleReachedEndOfTopic, handleSendError, handleSendReceipt, handleSuccess, handleTcClientConnectResponse, isHandshakeCompleted, isKnownException, newAckForReceipt, newAckForReceiptWithFuture, newGetTopicsOfNamespace, newLookup, registerTransactionBufferHandler, sendGetLastMessageId, sendGetOrCreateSchema, sendGetRawSchema, sendGetSchema
      • Methods inherited from class org.apache.pulsar.common.protocol.PulsarHandler

        cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceived, setRemoteEndpointProtocolVersion
      • Methods inherited from class org.apache.pulsar.common.protocol.PulsarDecoder

        channelRead, handleAck, handleAddPartitionToTxn, handleAddSubscriptionToTxn, handleAuthResponse, handleConnect, handleConsumerStats, handleConsumerStatsResponse, handleEndTxn, handleEndTxnOnPartition, handleEndTxnOnSubscription, handleFlow, handleGetLastMessageId, handleGetOrCreateSchema, handleGetSchema, handleGetTopicsOfNamespace, handleLookup, handleNewTxn, handlePartitionMetadataRequest, handleProducer, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSubscribe, handleTcClientConnectRequest, handleUnsubscribe, interceptCommand
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • Constructor Detail

      • ProxyClientCnx

        public ProxyClientCnx​(org.apache.pulsar.client.impl.conf.ClientConfigurationData conf,
                              io.netty.channel.EventLoopGroup eventLoopGroup,
                              java.lang.String clientAuthRole,
                              org.apache.pulsar.common.api.AuthData clientAuthData,
                              java.lang.String clientAuthMethod,
                              int protocolVersion,
                              boolean forwardClientAuthData,
                              ProxyConnection proxyConnection)
    • Method Detail

      • newConnectCommand

        protected io.netty.buffer.ByteBuf newConnectCommand()
                                                     throws java.lang.Exception
        Overrides:
        newConnectCommand in class org.apache.pulsar.client.impl.ClientCnx
        Throws:
        java.lang.Exception
      • handleAuthChallenge

        protected void handleAuthChallenge​(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge)
        Overrides:
        handleAuthChallenge in class org.apache.pulsar.client.impl.ClientCnx