类 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.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected io.netty.handler.codec.haproxy.HAProxyMessage
proxyMessage
-
构造器概要
构造器 构造器 说明 PulsarDecoder()
-
方法概要
-
从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
方法详细资料
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
- 指定者:
channelRead
在接口中io.netty.channel.ChannelInboundHandler
- 覆盖:
channelRead
在类中io.netty.channel.ChannelInboundHandlerAdapter
- 抛出:
java.lang.Exception
-
messageReceived
protected abstract void messageReceived()
-
interceptCommand
protected void interceptCommand(BaseCommand command) throws InterceptException
-
handlePartitionMetadataRequest
protected void handlePartitionMetadataRequest(CommandPartitionedTopicMetadata response)
-
handlePartitionResponse
protected void handlePartitionResponse(CommandPartitionedTopicMetadataResponse response)
-
handleLookup
protected void handleLookup(CommandLookupTopic lookup)
-
handleLookupResponse
protected void handleLookupResponse(CommandLookupTopicResponse connection)
-
handleConnect
protected void handleConnect(CommandConnect connect)
-
handleConnected
protected void handleConnected(CommandConnected connected)
-
handleSubscribe
protected void handleSubscribe(CommandSubscribe subscribe)
-
handleProducer
protected void handleProducer(CommandProducer producer)
-
handleSend
protected void handleSend(CommandSend send, io.netty.buffer.ByteBuf headersAndPayload)
-
handleSendReceipt
protected void handleSendReceipt(CommandSendReceipt sendReceipt)
-
handleSendError
protected void handleSendError(CommandSendError sendError)
-
handleMessage
protected void handleMessage(CommandMessage cmdMessage, io.netty.buffer.ByteBuf headersAndPayload)
-
handleAck
protected void handleAck(CommandAck ack)
-
handleAckResponse
protected void handleAckResponse(CommandAckResponse ackResponse)
-
handleFlow
protected void handleFlow(CommandFlow flow)
-
handleRedeliverUnacknowledged
protected void handleRedeliverUnacknowledged(CommandRedeliverUnacknowledgedMessages redeliver)
-
handleUnsubscribe
protected void handleUnsubscribe(CommandUnsubscribe unsubscribe)
-
handleSeek
protected void handleSeek(CommandSeek seek)
-
handleActiveConsumerChange
protected void handleActiveConsumerChange(CommandActiveConsumerChange change)
-
handleSuccess
protected void handleSuccess(CommandSuccess success)
-
handleProducerSuccess
protected void handleProducerSuccess(CommandProducerSuccess success)
-
handleError
protected void handleError(CommandError error)
-
handleCloseProducer
protected void handleCloseProducer(CommandCloseProducer closeProducer)
-
handleCloseConsumer
protected void handleCloseConsumer(CommandCloseConsumer closeConsumer)
-
handlePing
protected void handlePing(CommandPing ping)
-
handlePong
protected void handlePong(CommandPong pong)
-
handleConsumerStats
protected void handleConsumerStats(CommandConsumerStats commandConsumerStats)
-
handleConsumerStatsResponse
protected void handleConsumerStatsResponse(CommandConsumerStatsResponse commandConsumerStatsResponse)
-
handleReachedEndOfTopic
protected void handleReachedEndOfTopic(CommandReachedEndOfTopic commandReachedEndOfTopic)
-
handleGetLastMessageId
protected void handleGetLastMessageId(CommandGetLastMessageId getLastMessageId)
-
handleGetLastMessageIdSuccess
protected void handleGetLastMessageIdSuccess(CommandGetLastMessageIdResponse success)
-
handleGetTopicsOfNamespace
protected void handleGetTopicsOfNamespace(CommandGetTopicsOfNamespace commandGetTopicsOfNamespace)
-
handleGetTopicsOfNamespaceSuccess
protected void handleGetTopicsOfNamespaceSuccess(CommandGetTopicsOfNamespaceResponse response)
-
handleGetSchema
protected void handleGetSchema(CommandGetSchema commandGetSchema)
-
handleGetSchemaResponse
protected void handleGetSchemaResponse(CommandGetSchemaResponse commandGetSchemaResponse)
-
handleGetOrCreateSchema
protected void handleGetOrCreateSchema(CommandGetOrCreateSchema commandGetOrCreateSchema)
-
handleGetOrCreateSchemaResponse
protected void handleGetOrCreateSchemaResponse(CommandGetOrCreateSchemaResponse commandGetOrCreateSchemaResponse)
-
handleAuthResponse
protected void handleAuthResponse(CommandAuthResponse commandAuthResponse)
-
handleAuthChallenge
protected void handleAuthChallenge(CommandAuthChallenge commandAuthChallenge)
-
handleNewTxn
protected void handleNewTxn(CommandNewTxn commandNewTxn)
-
handleNewTxnResponse
protected void handleNewTxnResponse(CommandNewTxnResponse commandNewTxnResponse)
-
handleAddPartitionToTxn
protected void handleAddPartitionToTxn(CommandAddPartitionToTxn commandAddPartitionToTxn)
-
handleAddPartitionToTxnResponse
protected void handleAddPartitionToTxnResponse(CommandAddPartitionToTxnResponse commandAddPartitionToTxnResponse)
-
handleAddSubscriptionToTxn
protected void handleAddSubscriptionToTxn(CommandAddSubscriptionToTxn commandAddSubscriptionToTxn)
-
handleAddSubscriptionToTxnResponse
protected void handleAddSubscriptionToTxnResponse(CommandAddSubscriptionToTxnResponse commandAddSubscriptionToTxnResponse)
-
handleEndTxn
protected void handleEndTxn(CommandEndTxn commandEndTxn)
-
handleEndTxnResponse
protected void handleEndTxnResponse(CommandEndTxnResponse commandEndTxnResponse)
-
handleEndTxnOnPartition
protected void handleEndTxnOnPartition(CommandEndTxnOnPartition commandEndTxnOnPartition)
-
handleEndTxnOnPartitionResponse
protected void handleEndTxnOnPartitionResponse(CommandEndTxnOnPartitionResponse commandEndTxnOnPartitionResponse)
-
handleEndTxnOnSubscription
protected void handleEndTxnOnSubscription(CommandEndTxnOnSubscription commandEndTxnOnSubscription)
-
handleEndTxnOnSubscriptionResponse
protected void handleEndTxnOnSubscriptionResponse(CommandEndTxnOnSubscriptionResponse commandEndTxnOnSubscriptionResponse)
-
-