public class MysqlProtocol extends AbstractProtocol
COMPARATOR| 构造器和说明 |
|---|
MysqlProtocol() |
MysqlProtocol(InetSocketAddress mysqlAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPipeline(io.netty.channel.Channel frontendChannel)
add protocol pipeline support
|
boolean |
canSupport(io.netty.buffer.ByteBuf msg)
mysql client will not send the first packet, the server will, after receiving the link, immediately return the authentication information
TODO: 2月24日 024 mysql canSupport impl
|
boolean |
canSupport(io.netty.channel.Channel channel)
Support protocol
|
int |
getMaxPacketSize() |
InetSocketAddress |
getMysqlAddress() |
List<MysqlPacketListener> |
getMysqlPacketListeners() |
int |
getOrder()
default Priority order 0
|
String |
getProtocolName()
Get the protocol name
|
void |
setBackendBusinessHandler(Supplier<MysqlBackendBusinessHandler> backendBusinessHandler) |
void |
setFrontendBusinessHandler(Supplier<MysqlFrontendBusinessHandler> frontendBusinessHandler) |
void |
setMaxPacketSize(int maxPacketSize) |
void |
setMysqlAddress(InetSocketAddress mysqlAddress) |
getAutoFlushIdleMs, setAutoFlushIdleMs, toStringconfig, onServerStart, onServerStoppublic MysqlProtocol()
public MysqlProtocol(InetSocketAddress mysqlAddress)
public int getOrder()
ProtocolHandlergetOrder 在接口中 OrderedgetOrder 在接口中 ProtocolHandlergetOrder 在接口中 ServerListenergetOrder 在类中 AbstractProtocolpublic String getProtocolName()
ProtocolHandlerpublic boolean canSupport(io.netty.channel.Channel channel)
ProtocolHandlerchannel - channelpublic boolean canSupport(io.netty.buffer.ByteBuf msg)
msg - client first messagepublic void addPipeline(io.netty.channel.Channel frontendChannel)
throws Exception
ProtocolHandleraddPipeline 在接口中 ProtocolHandleraddPipeline 在类中 AbstractProtocolfrontendChannel - TCP channelException - Exceptionpublic void setMysqlAddress(InetSocketAddress mysqlAddress)
public void setMaxPacketSize(int maxPacketSize)
public void setBackendBusinessHandler(Supplier<MysqlBackendBusinessHandler> backendBusinessHandler)
public void setFrontendBusinessHandler(Supplier<MysqlFrontendBusinessHandler> frontendBusinessHandler)
public InetSocketAddress getMysqlAddress()
public int getMaxPacketSize()
public List<MysqlPacketListener> getMysqlPacketListeners()
Copyright © 2021. All rights reserved.