Class PulsarDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.pulsar.common.protocol.PulsarDecoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
PulsarHandler
public abstract class PulsarDecoder
extends io.netty.channel.ChannelInboundHandlerAdapter
Basic implementation of the channel handler to process inbound Pulsar data.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.netty.handler.codec.haproxy.HAProxyMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(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 voidhandleUnsubscribe(CommandUnsubscribe unsubscribe) protected voidinterceptCommand(BaseCommand command) protected abstract voidMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
proxyMessage
protected io.netty.handler.codec.haproxy.HAProxyMessage proxyMessage
-
-
Constructor Details
-
PulsarDecoder
public PulsarDecoder()
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
messageReceived
protected abstract void messageReceived() -
interceptCommand
- Throws:
InterceptException
-
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
-
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)
-