public class ProxyConnection extends 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) |
protected void |
handleConnect(PulsarApi.CommandConnect connect)
handles connect request and sends
State.Connected ack to client |
protected void |
handleLookup(PulsarApi.CommandLookupTopic lookup)
handles discovery request from client ands sends next active broker address
|
protected void |
handlePartitionMetadataRequest(PulsarApi.CommandPartitionedTopicMetadata partitionMetadata) |
protected boolean |
isHandshakeCompleted() |
void |
operationComplete(io.netty.util.concurrent.Future<Void> future) |
cancelKeepAliveTask, getRemoteEndpointProtocolVersion, handlePing, handlePong, messageReceivedhandleAck, handleCloseConsumer, handleCloseProducer, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleError, handleFlow, handleLookupResponse, handleMessage, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleUnsubscribechannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic ProxyConnection(ProxyService proxyService)
public 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 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(PulsarApi.CommandConnect connect)
State.Connected ack to clienthandleConnect in class PulsarDecoderprotected void handlePartitionMetadataRequest(PulsarApi.CommandPartitionedTopicMetadata partitionMetadata)
handlePartitionMetadataRequest in class PulsarDecoderprotected void handleLookup(PulsarApi.CommandLookupTopic lookup)
handleLookup in class PulsarDecoderprotected boolean isHandshakeCompleted()
isHandshakeCompleted in class PulsarHandlerCopyright © 2017–2018 Apache Software Foundation. All rights reserved.