public class ProxyConnection extends PulsarHandler implements io.netty.util.concurrent.FutureListener<Void>
ctx, remoteAddress, remoteEndpointProtocolVersionproxyMessage| 构造器和说明 |
|---|
ProxyConnection(ProxyService proxyService,
Supplier<io.netty.handler.ssl.SslHandler> sslHandlerSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
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(PulsarApi.CommandAuthResponse authResponse) |
protected void |
handleConnect(PulsarApi.CommandConnect connect) |
protected void |
handleGetSchema(PulsarApi.CommandGetSchema commandGetSchema) |
protected void |
handleGetTopicsOfNamespace(PulsarApi.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace) |
protected void |
handleLookup(PulsarApi.CommandLookupTopic lookup)
handles discovery request from client ands sends next active broker address
|
protected void |
handlePartitionMetadataRequest(PulsarApi.CommandPartitionedTopicMetadata partitionMetadata) |
boolean |
hasHAProxyMessage() |
protected boolean |
isHandshakeCompleted() |
void |
operationComplete(io.netty.util.concurrent.Future<Void> future) |
cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceivedhandleAck, 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 在接口中 io.netty.channel.ChannelInboundHandlerchannelRegistered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered 在接口中 io.netty.channel.ChannelInboundHandlerchannelUnregistered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 PulsarHandlerExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 PulsarHandlerExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead 在接口中 io.netty.channel.ChannelInboundHandlerchannelRead 在类中 PulsarDecoderExceptionpublic void operationComplete(io.netty.util.concurrent.Future<Void> future) throws Exception
protected void handleConnect(PulsarApi.CommandConnect connect)
handleConnect 在类中 PulsarDecoderprotected void handleAuthResponse(PulsarApi.CommandAuthResponse authResponse)
handleAuthResponse 在类中 PulsarDecoderprotected void handlePartitionMetadataRequest(PulsarApi.CommandPartitionedTopicMetadata partitionMetadata)
protected void handleGetTopicsOfNamespace(PulsarApi.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
protected void handleGetSchema(PulsarApi.CommandGetSchema commandGetSchema)
handleGetSchema 在类中 PulsarDecoderprotected void handleLookup(PulsarApi.CommandLookupTopic lookup)
handleLookup 在类中 PulsarDecoderpublic Authentication getClientAuthentication()
protected boolean isHandshakeCompleted()
isHandshakeCompleted 在类中 PulsarHandlerpublic boolean hasHAProxyMessage()
public io.netty.handler.codec.haproxy.HAProxyMessage getHAProxyMessage()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.