public final class ConnectionManager
extends java.lang.Object
com.genesyslab.platform.commons.connection.factory.class
' to fully
qualified name of the connection factory implementation.
Currently there is only one implementation - JBoss Netty framework.Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
CONN_FACTORY_KEY |
Deprecated.
|
static java.lang.String |
NETTY3 |
Deprecated.
|
static java.lang.String |
NETTY3_CON_FACTORY_CLASS |
Deprecated.
|
static java.lang.String |
NETTY4 |
|
static java.lang.String |
NETTY4_CON_FACTORY_CLASS |
|
static java.lang.String |
OIO |
|
static java.lang.String |
OIO_CON_FACTORY_CLASS |
Modifier and Type | Method | Description |
---|---|---|
static ConnectionAcceptor |
createAcceptor(java.lang.String host,
int port,
ConnectionListener listener,
ConnectionContext ctx) |
Creates connection acceptor object for the specified address.
|
static ConnectionAcceptor |
createAcceptor(java.net.SocketAddress address,
ConnectionListener listener,
ConnectionContext ctx) |
Creates connection acceptor object for the specified address.
|
static Connection |
createConnection(java.lang.String host,
int port,
ConnectionContext ctx) |
Creates connection object for the specified server.
|
static Connection |
createConnection(java.net.InetAddress address,
int port,
ConnectionContext ctx) |
Creates connection object for the specified server.
|
static java.lang.String |
getConnectionFactoryClassName() |
@Deprecated public static final java.lang.String NETTY3_CON_FACTORY_CLASS
public static final java.lang.String NETTY4_CON_FACTORY_CLASS
public static final java.lang.String OIO_CON_FACTORY_CLASS
@Deprecated public static final java.lang.String NETTY3
public static final java.lang.String NETTY4
public static final java.lang.String OIO
@Deprecated public static final java.lang.String CONN_FACTORY_KEY
public static Connection createConnection(java.lang.String host, int port, ConnectionContext ctx)
open
method to establish network connection.host
- host to connect toport
- port to connect toctx
- context of connectionpublic static Connection createConnection(java.net.InetAddress address, int port, ConnectionContext ctx)
open
method to establish network connection.address
- host to connect toport
- port to connect toctx
- context of connectionpublic static ConnectionAcceptor createAcceptor(java.lang.String host, int port, ConnectionListener listener, ConnectionContext ctx)
startAccepting
method to bind a socket.host
- host to listenport
- port to listen onlistener
- a listener to notify about new connectionspublic static ConnectionAcceptor createAcceptor(java.net.SocketAddress address, ConnectionListener listener, ConnectionContext ctx)
startAccepting
method to bind a socket.address
- address to listenlistener
- a listener to notify about new connectionspublic static java.lang.String getConnectionFactoryClassName()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.