public interface Connector
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the connector
|
Connection |
createConnection()
Create and return a connection from this connector.
|
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
|
void start()
void close()
boolean isStarted()
Connection createConnection()
This method must NOT throw an exception if it fails to create the connection (e.g. network is not available), in this case it MUST return null
boolean isEquivalent(Map<String,Object> configuration)
configuration
- Copyright © 2017 JBoss by Red Hat. All rights reserved.