public class NettyConnector extends AbstractConnector
| Modifier and Type | Field and Description |
|---|---|
static String |
HORNETQ_KEYSTORE_PASSWORD_PROP_NAME |
static String |
HORNETQ_KEYSTORE_PATH_PROP_NAME |
static String |
HORNETQ_TRUSTSTORE_PASSWORD_PROP_NAME |
static String |
HORNETQ_TRUSTSTORE_PATH_PROP_NAME |
static String |
JAVAX_KEYSTORE_PASSWORD_PROP_NAME |
static String |
JAVAX_KEYSTORE_PATH_PROP_NAME |
static String |
JAVAX_TRUSTSTORE_PASSWORD_PROP_NAME |
static String |
JAVAX_TRUSTSTORE_PATH_PROP_NAME |
configuration| Constructor and Description |
|---|
NettyConnector(Map<String,Object> configuration,
BufferHandler handler,
ConnectionLifeCycleListener listener,
Executor closeExecutor,
Executor threadPool,
ScheduledExecutorService scheduledThreadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes the connector
|
Connection |
createConnection()
Create and return a connection from this connector.
|
void |
finalize() |
org.jboss.netty.bootstrap.ClientBootstrap |
getBootStrap() |
boolean |
isEquivalent(Map<String,Object> configuration)
If the configuration is equivalent to this connector, which means
if the parameter configuration is used to create a connection to a target
node, it will be the same node as of the connections made with this connector.
|
boolean |
isStarted()
returns true if the connector is started, oterwise false.
|
void |
start()
starts the connector
|
String |
toString() |
public static final String JAVAX_KEYSTORE_PATH_PROP_NAME
public static final String JAVAX_KEYSTORE_PASSWORD_PROP_NAME
public static final String JAVAX_TRUSTSTORE_PATH_PROP_NAME
public static final String JAVAX_TRUSTSTORE_PASSWORD_PROP_NAME
public static final String HORNETQ_KEYSTORE_PATH_PROP_NAME
public static final String HORNETQ_KEYSTORE_PASSWORD_PROP_NAME
public static final String HORNETQ_TRUSTSTORE_PATH_PROP_NAME
public static final String HORNETQ_TRUSTSTORE_PASSWORD_PROP_NAME
public NettyConnector(Map<String,Object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener, Executor closeExecutor, Executor threadPool, ScheduledExecutorService scheduledThreadPool)
public void start()
Connectorpublic void close()
Connectorpublic boolean isStarted()
Connectorpublic Connection createConnection()
Connectorpublic boolean isEquivalent(Map<String,Object> configuration)
Connectorpublic void finalize()
throws Throwable
public org.jboss.netty.bootstrap.ClientBootstrap getBootStrap()
Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.