Package org.apache.pulsar.proxy.server
Class ProxyClientCnx
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.pulsar.common.protocol.PulsarDecoder
-
- org.apache.pulsar.common.protocol.PulsarHandler
-
- org.apache.pulsar.client.impl.ClientCnx
-
- org.apache.pulsar.proxy.server.ProxyClientCnx
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class ProxyClientCnx extends org.apache.pulsar.client.impl.ClientCnx
-
-
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 voidhandleAuthChallenge(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge)protected io.netty.buffer.ByteBufnewConnectCommand()-
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
-
-
-
-
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:
newConnectCommandin classorg.apache.pulsar.client.impl.ClientCnx- Throws:
java.lang.Exception
-
handleAuthChallenge
protected void handleAuthChallenge(org.apache.pulsar.common.api.proto.CommandAuthChallenge authChallenge)
- Overrides:
handleAuthChallengein classorg.apache.pulsar.client.impl.ClientCnx
-
-