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

org.infinispan.remoting.transport.jgroups.JGroupsChannelLookup Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.remoting.transport.jgroups;

import org.jgroups.Channel;

import java.util.Properties;

/**
 * A hook to pass in a JGroups channel.  Implementations need to provide a public no-arg constructor as instances are
 * created via reflection.
 *
 * @author Manik Surtani
 * @since 4.0
 */
public interface JGroupsChannelLookup {
   /**
    * Retrieves a JGroups channel.  Passes in all of the properties used to configure the channel.
    * @param p properties
    * @return a JGroups channel
    */
   Channel getJGroupsChannel(Properties p);

   /**
    * @return true if the JGroupsTransport should connect the channel before using it; false if the transport
    * should assume that the channel is connected.
    */
   boolean shouldConnect();

   /**
    * @return true if the JGroupsTransport should disconnect the channel once it is done with it; false if
    * the channel is to be left connected.
    */
   boolean shouldDisconnect();

   /**
    * @return true if the JGroupsTransport should close the channel once it is done with it; false if
    * the channel is to be left open.
    */
   boolean shouldClose();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy