public final class QConnectorFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static QConnectorAsync |
create(QConnectorListener listener,
String host,
int port,
boolean reconnectOnError) |
static QConnectorAsync |
create(QConnectorListener listener,
String host,
int port,
boolean reconnectOnError,
boolean connect) |
static QConnectorSync |
create(String host,
int port)
Reconnect on error and is thread-safe.
|
static QConnectorSync |
create(String host,
int port,
boolean reconnectOnError,
boolean threadsafe) |
static QConnectorSync |
create(String host,
int port,
boolean reconnectOnError,
boolean threadsafe,
boolean connect) |
public static QConnectorAsync create(QConnectorListener listener, String host, int port, boolean reconnectOnError, boolean connect) throws QConnectorException, QConnectorError
listener - Listenerhost - Hostport - PortreconnectOnError - Reconnect on error?connect - Connect?QConnectorException - If the connection can not be establishedQConnectorError - If the QConnector is already connectedpublic static QConnectorAsync create(QConnectorListener listener, String host, int port, boolean reconnectOnError)
listener - Listenerhost - Hostport - PortreconnectOnError - Reconnect on error?public static QConnectorSync create(String host, int port, boolean reconnectOnError, boolean threadsafe, boolean connect) throws QConnectorException, QConnectorError
host - Hostport - PortreconnectOnError - Reconnect on error?threadsafe - Thread-safe implementation?connect - Connect?QConnectorException - If the connection can not be establishedQConnectorError - If the QConnector is already connectedpublic static QConnectorSync create(String host, int port, boolean reconnectOnError, boolean threadsafe)
host - Hostport - PortreconnectOnError - Reconnect on error?threadsafe - Thread-safe implementation?public static QConnectorSync create(String host, int port)
host - Hostport - PortCopyright © 2012-2014. All Rights Reserved.