public class KafkaProtocol extends Service implements org.joyqueue.network.protocol.ProtocolService, BrokerContextAware, org.joyqueue.network.protocol.CommandHandlerProvider, org.joyqueue.network.protocol.ExceptionHandlerProvider
Service.Election, Service.ElectionListenerActivity.ServiceState| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
KafkaProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.joyqueue.network.transport.codec.CodecFactory |
createCodecFactory() |
org.joyqueue.network.transport.command.handler.CommandHandlerFactory |
createCommandHandlerFactory() |
void |
doStart() |
protected void |
doStop() |
io.netty.channel.ChannelHandler |
getCommandHandler(io.netty.channel.ChannelHandler channelHandler) |
org.joyqueue.network.transport.command.handler.ExceptionHandler |
getExceptionHandler() |
boolean |
isSupport(io.netty.buffer.ByteBuf buffer) |
protected void |
registerManage(BrokerContext brokerContext,
KafkaContext kafkaContext) |
void |
setBrokerContext(BrokerContext brokerContext) |
String |
type() |
getServiceState, isReady, isStarted, isStopped, start, stop, stop, validate, willStopafterStart, afterStop, await, beforeStart, beforeStop, convert, getReadLock, getWriteLock, startErrorpublic void setBrokerContext(BrokerContext brokerContext)
setBrokerContext 在接口中 BrokerContextAwareprotected void registerManage(BrokerContext brokerContext, KafkaContext kafkaContext)
public boolean isSupport(io.netty.buffer.ByteBuf buffer)
isSupport 在接口中 org.joyqueue.network.protocol.ProtocolServicepublic org.joyqueue.network.transport.codec.CodecFactory createCodecFactory()
createCodecFactory 在接口中 org.joyqueue.network.protocol.Protocolpublic org.joyqueue.network.transport.command.handler.CommandHandlerFactory createCommandHandlerFactory()
createCommandHandlerFactory 在接口中 org.joyqueue.network.protocol.Protocolpublic io.netty.channel.ChannelHandler getCommandHandler(io.netty.channel.ChannelHandler channelHandler)
getCommandHandler 在接口中 org.joyqueue.network.protocol.CommandHandlerProviderpublic org.joyqueue.network.transport.command.handler.ExceptionHandler getExceptionHandler()
getExceptionHandler 在接口中 org.joyqueue.network.protocol.ExceptionHandlerProviderpublic String type()
type 在接口中 org.joyqueue.network.protocol.ProtocolCopyright © 2020 Joyqueue Community. All rights reserved.