@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MinaChannel that = (MinaChannel) o;

        return !(session != null ? !session.equals(that.session) : that.session != null);

    }
@author Robert HG (254963746@qq.com) on 11/4/15.
lts-core/src/main/java/com/github/ltsopensource/remoting/mina/MinaChannel.java