public class TransportLayerFactory extends Object implements ITransportLayerFactory
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
protected IMessageParser |
parser |
| Constructor and Description |
|---|
TransportLayerFactory(Configuration config,
IMessageParser parser) |
| Modifier and Type | Method and Description |
|---|---|
IConnection |
createConnection(InetAddress remoteAddress,
IConcurrentFactory factory,
int remotePort,
InetAddress localAddress,
int localPort,
IConnectionListener listener,
String ref)
Create new IConnection instance with predefined parameters
|
IConnection |
createConnection(InetAddress remoteAddress,
IConcurrentFactory factory,
int remotePort,
InetAddress localAddress,
int localPort,
String ref)
Create new IConnection instance with predefined parameters
|
boolean |
isWrapperFor(Class<?> aClass) |
<T> T |
unwrap(Class<T> aClass) |
protected IMessageParser parser
protected Configuration config
public TransportLayerFactory(Configuration config, IMessageParser parser) throws TransportException
TransportExceptionpublic IConnection createConnection(InetAddress remoteAddress, IConcurrentFactory factory, int remotePort, InetAddress localAddress, int localPort, String ref) throws TransportException
ITransportLayerFactorycreateConnection in interface ITransportLayerFactoryremoteAddress - destination host addressfactory - concurrent factoryremotePort - destination port addresslocalAddress - local network adapter addresslocalPort - local socket portref - reference to additional parametersTransportExceptionpublic IConnection createConnection(InetAddress remoteAddress, IConcurrentFactory factory, int remotePort, InetAddress localAddress, int localPort, IConnectionListener listener, String ref) throws TransportException
ITransportLayerFactorycreateConnection in interface ITransportLayerFactoryremoteAddress - destination host addressfactory - concurrent factoryremotePort - destination port addresslocalAddress - local network adapter addresslocalPort - local socket portlistener - connection listener instanceref - reference to additional parametersTransportExceptionpublic boolean isWrapperFor(Class<?> aClass) throws InternalException
isWrapperFor in interface WrapperInternalExceptionpublic <T> T unwrap(Class<T> aClass) throws InternalException
unwrap in interface WrapperInternalExceptionCopyright © 2016. All Rights Reserved.