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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.jgroups.JChannel
getJGroupsChannel(Properties p)
Retrieves a JGroups channel.boolean
shouldClose()
boolean
shouldConnect()
boolean
shouldDisconnect()
-
-
-
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.
-
-