类 PulsarHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.pulsar.common.protocol.PulsarDecoder
org.apache.pulsar.common.protocol.PulsarHandler
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
Implementation of the channel handler to process inbound Pulsar data.
Please see PulsarDecoder javadoc for important details about handle* method
parameter instance lifecycle.
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
字段概要
字段从类继承的字段 org.apache.pulsar.common.protocol.PulsarDecoder
proxyMessage -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) intprotected final voidhandlePing(CommandPing ping) protected final voidhandlePong(CommandPong pong) protected abstract booleanprotected voidprotected io.netty.channel.ChannelFuturesendPing()protected voidsetRemoteEndpointProtocolVersion(int remoteEndpointProtocolVersion) toString()Demo: [id: 0x2561bcd1, L:/10.0.136.103:6650 !从类继承的方法 org.apache.pulsar.common.protocol.PulsarDecoder
channelRead, handleAck, handleAckResponse, handleActiveConsumerChange, handleAddPartitionToTxn, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxn, handleAddSubscriptionToTxnResponse, handleAuthChallenge, handleAuthResponse, handleCloseConsumer, handleCloseProducer, handleCommandWatchTopicList, handleCommandWatchTopicListClose, handleCommandWatchTopicListSuccess, handleCommandWatchTopicUpdate, handleConnect, handleConnected, handleConsumerStats, handleConsumerStatsResponse, handleEndTxn, handleEndTxnOnPartition, handleEndTxnOnPartitionResponse, handleEndTxnOnSubscription, handleEndTxnOnSubscriptionResponse, handleEndTxnResponse, handleError, handleFlow, handleGetLastMessageId, handleGetLastMessageIdSuccess, handleGetOrCreateSchema, handleGetOrCreateSchemaResponse, handleGetSchema, handleGetSchemaResponse, handleGetTopicsOfNamespace, handleGetTopicsOfNamespaceSuccess, handleLookup, handleLookupResponse, handleMessage, handleNewTxn, handleNewTxnResponse, handlePartitionMetadataRequest, handlePartitionResponse, handleProducer, handleProducerSuccess, handleReachedEndOfTopic, handleRedeliverUnacknowledged, handleSeek, handleSend, handleSendError, handleSendReceipt, handleSubscribe, handleSuccess, handleTcClientConnectRequest, handleTcClientConnectResponse, handleTopicMigrated, handleUnsubscribe, interceptCommand从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
字段详细资料
-
ctx
protected io.netty.channel.ChannelHandlerContext ctx -
remoteAddress
-
-
构造器详细资料
-
PulsarHandler
-
-
方法详细资料
-
getRemoteEndpointProtocolVersion
public int getRemoteEndpointProtocolVersion() -
setRemoteEndpointProtocolVersion
protected void setRemoteEndpointProtocolVersion(int remoteEndpointProtocolVersion) -
messageReceived
protected void messageReceived()- 指定者:
messageReceived在类中PulsarDecoder
-
channelActive
- 指定者:
channelActive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelActive在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
channelInactive
- 指定者:
channelInactive在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelInactive在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
handlePing
- 覆盖:
handlePing在类中PulsarDecoder
-
handlePong
- 覆盖:
handlePong在类中PulsarDecoder
-
sendPing
protected io.netty.channel.ChannelFuture sendPing() -
cancelKeepAliveTask
public void cancelKeepAliveTask() -
isHandshakeCompleted
protected abstract boolean isHandshakeCompleted()- 返回:
- true if the connection is ready to use, meaning the Pulsar handshake was already completed
-
toString
Demo: [id: 0x2561bcd1, L:/10.0.136.103:6650 ! R:/240.240.0.5:58038]. L: local Address. R: remote address.
-