public class MessageLinkFactory extends java.lang.Object implements ChannelProtocolFactory
| Constructor and Description |
|---|
MessageLinkFactory(int inMaxChannels)
Create a new protocol store.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelProtocol |
createProtocol() |
MessageProtocol |
getGroupProtocol(NodeDetails inDetails)
Get the stored group protocol associated with the given node.
|
MessageLink |
openLink(NodeDetails inDetails)
Open a new connection to the given node.
|
MessageLink |
openVirtualLink(NodeDetails inDetails)
Open a new virtual connection using the stored group protocol.
|
public MessageLinkFactory(int inMaxChannels)
inMaxChannels - - The max number of channels to open to each destination.public ChannelProtocol createProtocol()
createProtocol in interface ChannelProtocolFactorypublic MessageProtocol getGroupProtocol(NodeDetails inDetails)
inDetails - - The associated node.java.io.IOExceptionpublic MessageLink openLink(NodeDetails inDetails) throws LinkException
inDetails - - The node to connect to.java.io.IOExceptionLinkExceptionpublic MessageLink openVirtualLink(NodeDetails inDetails) throws LinkException
inDetails - - The node to connect to.java.io.IOExceptionLinkException