Ejemplo n.º 1
0
 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);
     }
   }
 }
Ejemplo n.º 2
0
  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);
        }
      }
    }
  }