public void channelConnected(Channel channel) { for (ChannelListener l : channel_listeners) { try { l.channelConnected(channel); } catch (Throwable t) { log.warn("notifying channel listener " + l + " failed", t); } } }
public void channelConnected(Channel channel) { synchronized (additionalChannelListeners) { for (Iterator i = additionalChannelListeners.iterator(); i.hasNext(); ) { ChannelListener l = (ChannelListener) i.next(); try { l.channelConnected(channel); } catch (Throwable t) { log.warn("channel listener failed", t); } } } }