public static ConnectionCloseType fromChannel(Channel ch) {
        ConnectionCloseType type =
                ch.attr(ConnectionCloseChannelAttributes.CLOSE_TYPE).get();
        if (type == null) {
            // Default to immediate.
            type = ConnectionCloseType.IMMEDIATE;
        }
        return type;
    }
User: michaels@netflix.com
Date: 2/8/17
Time: 2:04 PM
zuul-core/src/main/java/com/netflix/netty/common/ConnectionCloseType.java