mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
【fix】修复无法启动问题
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.common;
|
||||
|
||||
|
||||
import io.netty.channel.Channel;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
public class NettyChannelContext {
|
||||
|
||||
|
||||
private ChannelHandlerContext channelHandlerContext;
|
||||
|
||||
|
||||
/**
|
||||
* 获取当前通道上下文中的通道
|
||||
*
|
||||
* @return 上下问通道
|
||||
*/
|
||||
public Channel getChannel() {
|
||||
return channelHandlerContext.channel();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user