protected ChatChannel intern ( ChatChannel channel ) { ChannelInfo chinfo = _channels . get ( channel ) ; if ( chinfo != null ) { return chinfo . channel ; } return channel ; }
Returns a widely referenced instance equivalent to the given channel if one is available . This reduces memory usage since clients send new channel instances with each message .