public class ProxyConnection extends org.apache.pulsar.common.api.PulsarHandler implements io.netty.util.concurrent.FutureListener<Void>
ctx, remoteAddress, remoteEndpointProtocolVersionMaxFrameSize, MaxMessageSize| Constructor and Description |
|---|
ProxyConnection(ProxyService proxyService) |
| 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() |
protected void |
handleConnect(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect connect)
handles connect request and sends
State.Connected ack to client |
protected void |
handleGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace) |
protected void |
handleLookup(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic lookup)
handles discovery request from client ands sends next active broker address
|
protected void |
handlePartitionMetadataRequest(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata partitionMetadata) |
protected boolean |
isHandshakeCompleted() |
void |
operationComplete(io.netty.util.concurrent.Future<Void> future) |
cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceivedhandleAck, handleActiveConsumerChange, handleCloseConsumer, handleCloseProducer, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleError, handleFlow, handleGetLastMessageId, handleGetLastMessageIdSuccess, handleGetSchema, handleGetSchemaResponse, handleGetTopicsOfNamespaceSuccess, handleLookupResponse, handleMessage, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleUnsubscribechannelReadComplete, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic ProxyConnection(ProxyService proxyService)
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.api.PulsarHandlerExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class org.apache.pulsar.common.api.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.api.PulsarDecoderExceptionpublic void operationComplete(io.netty.util.concurrent.Future<Void> future) throws Exception
protected void handleConnect(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect connect)
State.Connected ack to clienthandleConnect in class org.apache.pulsar.common.api.PulsarDecoderprotected void handlePartitionMetadataRequest(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata partitionMetadata)
handlePartitionMetadataRequest in class org.apache.pulsar.common.api.PulsarDecoderprotected void handleGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
handleGetTopicsOfNamespace in class org.apache.pulsar.common.api.PulsarDecoderprotected void handleLookup(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic lookup)
handleLookup in class org.apache.pulsar.common.api.PulsarDecoderpublic Authentication getClientAuthentication()
protected boolean isHandshakeCompleted()
isHandshakeCompleted in class org.apache.pulsar.common.api.PulsarHandlerCopyright © 2017–2018 Apache Software Foundation. All rights reserved.