Saving Channel object

Lev Shock dein at hackerdom.ru
Fri Sep 23 22:58:22 EDT 2011


It's safe, but you must update your channel store on user
connection/disconnection.

On Sat, Sep 24, 2011 at 3:05 AM, irwinbilling <irwin.billing at gmail.com>wrote:

> Is it safe to cache a channel object retrieved from
> ChannelStateEvent.getChannel() and write to it during other events or from
> other threads?
>
> For example, if one SimpleChannelUpstreamHandler receives a message and the
> logic requires that a message must be sent to another user (whose channel
> is
> cached by another SimpleChannelUpstreamHandler in a global store), is it
> safe to write to the second user's channel.
>
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Saving-Channel-object-tp6825727p6825727.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110924/66add3bf/attachment.html 


More information about the netty-users mailing list