All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgroups.ChannelListener Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 32.0.0.Final
Show newest version
package org.jgroups;

/**
 * Allows a listener to be notified when an important channel lifecycle event occurs.
 * 

* * Usually clients do not need to implement ChannelListener interface. However, this interface can * useful in scenarios when an application opens multiple channels and needs to tracks major * lifecycle events on those channels from a single location or in scenarios when channel is wrapped * by JGroups building block installed on top of a channel (RpcDispatcher etc) while a client needs * to be notified about major channel lifecycle events. * * @see Channel#addChannelListener(ChannelListener) * @see Channel#removeChannelListener(ChannelListener) * @see Channel#clearChannelListeners() * * @author Bela Ban * @since 2.0 * */ public interface ChannelListener { /** * Channel has been connected notification callback * * @param channel the channel that has been connected */ void channelConnected(Channel channel); /** * Channel has been disconnected notification callback * * @param channel the disconnected channel */ void channelDisconnected(Channel channel); /** * Channel has been closed notification callback * * @param channel the closed channel */ void channelClosed(Channel channel); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy