Logo Search packages:      
Sourcecode: libjgroups-java version File versions

synchronized void org::jgroups::Channel::addChannelListener ( ChannelListener  listener  )  [inline, inherited]

Allows to be notified when a channel event such as connect, disconnect or close occurs. E.g. a PullPushAdapter may choose to stop when the channel is closed, or to start when it is opened.

Definition at line 349 of file Channel.java.

Referenced by org::jgroups::Channel::setChannelListener(), and org::jgroups::tests::ShunTest::testTwoMembersShun().

        if(listener == null)
        if(channel_listeners == null)
            channel_listeners=new CopyOnWriteArraySet<ChannelListener>();

Generated by  Doxygen 1.6.0   Back to index