类 PulsarDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.pulsar.common.protocol.PulsarDecoder
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- 直接已知子类:
PulsarHandler
public abstract class PulsarDecoder
extends io.netty.channel.ChannelInboundHandlerAdapter
Basic implementation of the channel handler to process inbound Pulsar data.
Please be aware that the decoded protocol command instance passed to a handle* method is cleared and reused for the next protocol command after the method completes. This is done in order to minimize object allocations for performance reasons. It is not allowed to retain a reference to the handle* method parameter command instance after the method returns. If you need to pass an instance of the command instance to another thread or retain a reference to it after the handle* method completes, you must make a deep copy of the command instance.
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) protected voidhandleAck(CommandAck ack) protected voidhandleAckResponse(CommandAckResponse ackResponse) protected voidprotected voidhandleAddPartitionToTxn(CommandAddPartitionToTxn commandAddPartitionToTxn) protected voidhandleAddPartitionToTxnResponse(CommandAddPartitionToTxnResponse commandAddPartitionToTxnResponse) protected voidhandleAddSubscriptionToTxn(CommandAddSubscriptionToTxn commandAddSubscriptionToTxn) protected voidhandleAddSubscriptionToTxnResponse(CommandAddSubscriptionToTxnResponse commandAddSubscriptionToTxnResponse) protected voidhandleAuthChallenge(CommandAuthChallenge commandAuthChallenge) protected voidhandleAuthResponse(CommandAuthResponse commandAuthResponse) protected voidhandleCloseConsumer(CommandCloseConsumer closeConsumer) protected voidhandleCloseProducer(CommandCloseProducer closeProducer) protected voidhandleCommandWatchTopicList(CommandWatchTopicList commandWatchTopicList) protected voidhandleCommandWatchTopicListClose(CommandWatchTopicListClose commandWatchTopicListClose) protected voidhandleCommandWatchTopicListSuccess(CommandWatchTopicListSuccess commandWatchTopicListSuccess) protected voidhandleCommandWatchTopicUpdate(CommandWatchTopicUpdate commandWatchTopicUpdate) protected voidhandleConnect(CommandConnect connect) protected voidhandleConnected(CommandConnected connected) protected voidhandleConsumerStats(CommandConsumerStats commandConsumerStats) protected voidhandleConsumerStatsResponse(CommandConsumerStatsResponse commandConsumerStatsResponse) protected voidhandleEndTxn(CommandEndTxn commandEndTxn) protected voidhandleEndTxnOnPartition(CommandEndTxnOnPartition commandEndTxnOnPartition) protected voidhandleEndTxnOnPartitionResponse(CommandEndTxnOnPartitionResponse commandEndTxnOnPartitionResponse) protected voidhandleEndTxnOnSubscription(CommandEndTxnOnSubscription commandEndTxnOnSubscription) protected voidhandleEndTxnOnSubscriptionResponse(CommandEndTxnOnSubscriptionResponse commandEndTxnOnSubscriptionResponse) protected voidhandleEndTxnResponse(CommandEndTxnResponse commandEndTxnResponse) protected voidhandleError(CommandError error) protected voidhandleFlow(CommandFlow flow) protected voidhandleGetLastMessageId(CommandGetLastMessageId getLastMessageId) protected voidprotected voidhandleGetOrCreateSchema(CommandGetOrCreateSchema commandGetOrCreateSchema) protected voidhandleGetOrCreateSchemaResponse(CommandGetOrCreateSchemaResponse commandGetOrCreateSchemaResponse) protected voidhandleGetSchema(CommandGetSchema commandGetSchema) protected voidhandleGetSchemaResponse(CommandGetSchemaResponse commandGetSchemaResponse) protected voidhandleGetTopicsOfNamespace(CommandGetTopicsOfNamespace commandGetTopicsOfNamespace) protected voidprotected voidhandleLookup(CommandLookupTopic lookup) protected voidhandleLookupResponse(CommandLookupTopicResponse connection) protected voidhandleMessage(CommandMessage cmdMessage, io.netty.buffer.ByteBuf headersAndPayload) protected voidhandleNewTxn(CommandNewTxn commandNewTxn) protected voidhandleNewTxnResponse(CommandNewTxnResponse commandNewTxnResponse) protected voidprotected voidprotected voidhandlePing(CommandPing ping) protected voidhandlePong(CommandPong pong) protected voidhandleProducer(CommandProducer producer) protected voidprotected voidhandleReachedEndOfTopic(CommandReachedEndOfTopic commandReachedEndOfTopic) protected voidprotected voidhandleSeek(CommandSeek seek) protected voidhandleSend(CommandSend send, io.netty.buffer.ByteBuf headersAndPayload) protected voidhandleSendError(CommandSendError sendError) protected voidhandleSendReceipt(CommandSendReceipt sendReceipt) protected voidhandleSubscribe(CommandSubscribe subscribe) protected voidhandleSuccess(CommandSuccess success) protected voidhandleTcClientConnectRequest(CommandTcClientConnectRequest tcClientConnectRequest) protected voidhandleTcClientConnectResponse(CommandTcClientConnectResponse tcClientConnectResponse) protected voidhandleTopicMigrated(CommandTopicMigrated commandMigratedTopic) protected voidhandleUnsubscribe(CommandUnsubscribe unsubscribe) protected voidinterceptCommand(BaseCommand command) protected abstract void从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
字段详细资料
-
proxyMessage
protected io.netty.handler.codec.haproxy.HAProxyMessage proxyMessage
-
-
构造器详细资料
-
PulsarDecoder
public PulsarDecoder()
-
-
方法详细资料
-
channelRead
- 指定者:
channelRead在接口中io.netty.channel.ChannelInboundHandler- 覆盖:
channelRead在类中io.netty.channel.ChannelInboundHandlerAdapter- 抛出:
Exception
-
messageReceived
protected abstract void messageReceived() -
interceptCommand
-
handlePartitionMetadataRequest
-
handlePartitionResponse
-
handleLookup
-
handleLookupResponse
-
handleConnect
-
handleConnected
-
handleSubscribe
-
handleProducer
-
handleSend
-
handleSendReceipt
-
handleSendError
-
handleMessage
-
handleAck
-
handleAckResponse
-
handleFlow
-
handleRedeliverUnacknowledged
-
handleUnsubscribe
-
handleSeek
-
handleActiveConsumerChange
-
handleSuccess
-
handleProducerSuccess
-
handleError
-
handleCloseProducer
-
handleCloseConsumer
-
handlePing
-
handlePong
-
handleConsumerStats
-
handleConsumerStatsResponse
protected void handleConsumerStatsResponse(CommandConsumerStatsResponse commandConsumerStatsResponse) -
handleReachedEndOfTopic
-
handleTopicMigrated
-
handleGetLastMessageId
-
handleGetLastMessageIdSuccess
-
handleGetTopicsOfNamespace
-
handleGetTopicsOfNamespaceSuccess
-
handleGetSchema
-
handleGetSchemaResponse
-
handleGetOrCreateSchema
-
handleGetOrCreateSchemaResponse
protected void handleGetOrCreateSchemaResponse(CommandGetOrCreateSchemaResponse commandGetOrCreateSchemaResponse) -
handleAuthResponse
-
handleAuthChallenge
-
handleTcClientConnectRequest
-
handleTcClientConnectResponse
protected void handleTcClientConnectResponse(CommandTcClientConnectResponse tcClientConnectResponse) -
handleNewTxn
-
handleNewTxnResponse
-
handleAddPartitionToTxn
-
handleAddPartitionToTxnResponse
protected void handleAddPartitionToTxnResponse(CommandAddPartitionToTxnResponse commandAddPartitionToTxnResponse) -
handleAddSubscriptionToTxn
-
handleAddSubscriptionToTxnResponse
protected void handleAddSubscriptionToTxnResponse(CommandAddSubscriptionToTxnResponse commandAddSubscriptionToTxnResponse) -
handleEndTxn
-
handleEndTxnResponse
-
handleEndTxnOnPartition
-
handleEndTxnOnPartitionResponse
protected void handleEndTxnOnPartitionResponse(CommandEndTxnOnPartitionResponse commandEndTxnOnPartitionResponse) -
handleEndTxnOnSubscription
-
handleEndTxnOnSubscriptionResponse
protected void handleEndTxnOnSubscriptionResponse(CommandEndTxnOnSubscriptionResponse commandEndTxnOnSubscriptionResponse) -
handleCommandWatchTopicList
-
handleCommandWatchTopicListSuccess
protected void handleCommandWatchTopicListSuccess(CommandWatchTopicListSuccess commandWatchTopicListSuccess) -
handleCommandWatchTopicUpdate
-
handleCommandWatchTopicListClose
protected void handleCommandWatchTopicListClose(CommandWatchTopicListClose commandWatchTopicListClose)
-