org.jdiameter.client.api.io
Interface ITransportLayerFactory

All Superinterfaces:
Wrapper
All Known Subinterfaces:
ITransportLayerFactory
All Known Implementing Classes:
TransportLayerFactory, TransportLayerFactory

public interface ITransportLayerFactory
extends Wrapper

Factory of Network Layer elements. Configuration and message parser instances injection by constructor

Author:
erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski

Method Summary
 IConnection createConnection(java.net.InetAddress remoteAddress, IConcurrentFactory factory, int remotePort, java.net.InetAddress localAddress, int localPort, IConnectionListener listener, java.lang.String ref)
          Create new IConnection instance with predefined parameters
 IConnection createConnection(java.net.InetAddress remoteAddress, IConcurrentFactory factory, int remotePort, java.net.InetAddress localAddress, int localPort, java.lang.String ref)
          Create new IConnection instance with predefined parameters
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Method Detail

createConnection

IConnection createConnection(java.net.InetAddress remoteAddress,
                             IConcurrentFactory factory,
                             int remotePort,
                             java.net.InetAddress localAddress,
                             int localPort,
                             java.lang.String ref)
                             throws TransportException
Create new IConnection instance with predefined parameters

Parameters:
remoteAddress - destination host address
factory - concurrent factory
remotePort - destination port address
localAddress - local network adapter address
localPort - local socket port
ref - reference to additional parameters
Returns:
IConnection instance
Throws:
TransportException

createConnection

IConnection createConnection(java.net.InetAddress remoteAddress,
                             IConcurrentFactory factory,
                             int remotePort,
                             java.net.InetAddress localAddress,
                             int localPort,
                             IConnectionListener listener,
                             java.lang.String ref)
                             throws TransportException
Create new IConnection instance with predefined parameters

Parameters:
remoteAddress - destination host address
factory - concurrent factory
remotePort - destination port address
localAddress - local network adapter address
localPort - local socket port
listener - connection listener instance
ref - reference to additional parameters
Returns:
IConnection instance
Throws:
TransportException


Copyright © 2014. All Rights Reserved.