Interface JGroupsChannelLookup


  • public interface JGroupsChannelLookup
    A hook to pass in a JGroups channel. Implementations need to provide a public no-arg constructor as instances are created via reflection.
    Since:
    4.0
    Author:
    Manik Surtani
    • Method Detail

      • getJGroupsChannel

        org.jgroups.JChannel getJGroupsChannel​(Properties p)
        Retrieves a JGroups channel. Passes in all of the properties used to configure the channel.
        Parameters:
        p - properties
        Returns:
        a JGroups channel
      • shouldConnect

        boolean shouldConnect()
        Returns:
        true if the JGroupsTransport should connect the channel before using it; false if the transport should assume that the channel is connected.
      • shouldDisconnect

        boolean shouldDisconnect()
        Returns:
        true if the JGroupsTransport should disconnect the channel once it is done with it; false if the channel is to be left connected.
      • shouldClose

        boolean shouldClose()
        Returns:
        true if the JGroupsTransport should close the channel once it is done with it; false if the channel is to be left open.