public abstract class PulsarHandler extends PulsarDecoder
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.ChannelHandlerContext |
ctx |
protected SocketAddress |
remoteAddress |
protected int |
remoteEndpointProtocolVersion |
proxyMessage| Constructor and Description |
|---|
PulsarHandler(int keepAliveInterval,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelKeepAliveTask() |
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
int |
getRemoteEndpointProtocolVersion() |
protected void |
handlePing(PulsarApi.CommandPing ping) |
protected void |
handlePong(PulsarApi.CommandPong pong) |
protected abstract boolean |
isHandshakeCompleted() |
protected void |
messageReceived() |
channelRead, handleAck, handleAckResponse, handleActiveConsumerChange, handleAddPartitionToTxn, handleAddPartitionToTxnResponse, handleAddSubscriptionToTxn, handleAddSubscriptionToTxnResponse, handleAuthChallenge, handleAuthResponse, handleCloseConsumer, handleCloseProducer, 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, handleUnsubscribe, interceptCommandchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected io.netty.channel.ChannelHandlerContext ctx
protected SocketAddress remoteAddress
protected int remoteEndpointProtocolVersion
public PulsarHandler(int keepAliveInterval,
TimeUnit unit)
public int getRemoteEndpointProtocolVersion()
protected final void messageReceived()
messageReceived in class PulsarDecoderpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected final void handlePing(PulsarApi.CommandPing ping)
handlePing in class PulsarDecoderprotected final void handlePong(PulsarApi.CommandPong pong)
handlePong in class PulsarDecoderprotected void cancelKeepAliveTask()
protected abstract boolean isHandshakeCompleted()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.