public class ProxyConnection extends PulsarHandler implements io.netty.util.concurrent.FutureListener<Void>
ctx, remoteAddressproxyMessage| Constructor and Description |
|---|
ProxyConnection(ProxyService proxyService,
Supplier<io.netty.handler.ssl.SslHandler> sslHandlerSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Authentication |
getClientAuthentication() |
io.netty.handler.codec.haproxy.HAProxyMessage |
getHAProxyMessage() |
protected void |
handleAuthResponse(CommandAuthResponse authResponse) |
protected void |
handleConnect(CommandConnect connect) |
protected void |
handleGetSchema(CommandGetSchema commandGetSchema) |
protected void |
handleGetTopicsOfNamespace(CommandGetTopicsOfNamespace commandGetTopicsOfNamespace) |
protected void |
handleLookup(CommandLookupTopic lookup)
handles discovery request from client ands sends next active broker address
|
protected void |
handlePartitionMetadataRequest(CommandPartitionedTopicMetadata partitionMetadata) |
boolean |
hasHAProxyMessage() |
protected boolean |
isHandshakeCompleted() |
void |
operationComplete(io.netty.util.concurrent.Future<Void> future) |
cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceived, setRemoteEndpointProtocolVersionhandleAck, handleAckResponse, 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, interceptCommandchannelReadComplete, 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 PulsarHandlerExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class 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 PulsarDecoderExceptionpublic void operationComplete(io.netty.util.concurrent.Future<Void> future) throws Exception
protected void handleConnect(CommandConnect connect)
handleConnect in class PulsarDecoderprotected void handleAuthResponse(CommandAuthResponse authResponse)
handleAuthResponse in class PulsarDecoderprotected void handlePartitionMetadataRequest(CommandPartitionedTopicMetadata partitionMetadata)
handlePartitionMetadataRequest in class PulsarDecoderprotected void handleGetTopicsOfNamespace(CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
handleGetTopicsOfNamespace in class PulsarDecoderprotected void handleGetSchema(CommandGetSchema commandGetSchema)
handleGetSchema in class PulsarDecoderprotected void handleLookup(CommandLookupTopic lookup)
handleLookup in class PulsarDecoderpublic Authentication getClientAuthentication()
protected boolean isHandshakeCompleted()
isHandshakeCompleted in class PulsarHandlerpublic boolean hasHAProxyMessage()
public io.netty.handler.codec.haproxy.HAProxyMessage getHAProxyMessage()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.