| 构造器和说明 |
|---|
BusinessHttp7() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close(io.netty.channel.Channel channel)
链接关闭
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
全局异常
|
SocketAddress |
getProxyHost(io.netty.channel.ChannelHandlerContext ctx,
Object fullHttpRequest,
SocketAddress sourceSocketAddress)
代理host
业务代码只处理选择什么样的服务,比如常见随机模式 hash模式 循环模式等
|
Object |
in(io.netty.channel.ChannelHandlerContext ctx,
Object obj)
数据入场
业务处理模式,拦截器 限流等
|
Object |
out(io.netty.channel.Channel channel,
Object obj)
数据出场
数据加密等操作
|
String |
requestIgnoreUrls()
忽略的url进行消息聚合
|
String |
responseIgnoreUrls() |
public String requestIgnoreUrls()
public String responseIgnoreUrls()
public Object in(io.netty.channel.ChannelHandlerContext ctx, Object obj)
Businesspublic SocketAddress getProxyHost(io.netty.channel.ChannelHandlerContext ctx, Object fullHttpRequest, SocketAddress sourceSocketAddress)
BusinessgetProxyHost 在接口中 Business<Object,Object>public void close(io.netty.channel.Channel channel)
BusinessCopyright © 2024. All rights reserved.