org.infinispan.remoting.transport.jgroups
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 Summary
 org.jgroups.Channel getJGroupsChannel(Properties p)
          Retrieves a JGroups channel.
 boolean shouldStartAndConnect()
           
 boolean shouldStopAndDisconnect()
           
 

Method Detail

getJGroupsChannel

org.jgroups.Channel 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

shouldStartAndConnect

boolean shouldStartAndConnect()
Returns:
true if the JGroupsTransport should start and connect the channel before using it; false if the transport should assume that the channel is connected and started.

shouldStopAndDisconnect

boolean shouldStopAndDisconnect()
Returns:
true if the JGroupsTransport should stop and disconnect the channel once it is done with it; false if the channel is to be left open/connected.

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.