com.github.fartherp.framework.remoting.netty.NettyEvent Maven / Gradle / Ivy
/*
* Copyright (c) 2017. CK. All rights reserved.
*/
package com.github.fartherp.framework.remoting.netty;
import io.netty.channel.Channel;
/**
* @author hyssop
*/
public class NettyEvent {
private final NettyEventType type;
private final String remoteAddr;
private final Channel channel;
public NettyEvent(NettyEventType type, String remoteAddr, Channel channel) {
this.type = type;
this.remoteAddr = remoteAddr;
this.channel = channel;
}
public NettyEventType getType() {
return type;
}
public String getRemoteAddr() {
return remoteAddr;
}
public Channel getChannel() {
return channel;
}
@Override
public String toString() {
return "NettyEvent [type=" + type + ", remoteAddr=" + remoteAddr + ", channel=" + channel + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy