public class LocalConnectionPair extends Object
Constructor and Description |
---|
LocalConnectionPair(String name,
ConversationProvider firstProvider,
ConversationProvider secondProvider)
Creates a pair of connections using the supplied conversation providers.
|
Modifier and Type | Method and Description |
---|---|
Connection |
first()
External end-point of the local connection pair.
|
Connection |
second()
Internal end-point of the local connection pair.
|
public LocalConnectionPair(String name, ConversationProvider firstProvider, ConversationProvider secondProvider) throws IOException
name
- base name for the pair of connectionsfirstProvider
- conversation provider for the first connectionsecondProvider
- conversation provider for the second connectionIOException
- if an issue is encountered while creating local
internal/external connection pairpublic Connection first()
public Connection second()
Copyright © 2015. All Rights Reserved.