All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ltsopensource.remoting.RemotingEvent Maven / Gradle / Ivy

package com.github.ltsopensource.remoting;

/**
 * 事件
 */
public class RemotingEvent {

    private final RemotingEventType type;
    private final String remoteAddr;
    private final Channel channel;

    public RemotingEvent(RemotingEventType type, String remoteAddr, Channel channel) {
        this.type = type;
        this.remoteAddr = remoteAddr;
        this.channel = channel;
    }

    public RemotingEventType getType() {
        return type;
    }

    public String getRemoteAddr() {
        return remoteAddr;
    }

    public Channel getChannel() {
        return channel;
    }

    @Override
    public String toString() {
        return "RemotingEvent [type=" + type + ", remoteAddr=" + remoteAddr + ", channel=" + channel + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy