public class DefaultConnectionFactory extends Object implements ConnectionFactory
ConnectionFactory.ConnectionSpec| Constructor and Description |
|---|
DefaultConnectionFactory()
Construct a connection factory.
|
DefaultConnectionFactory(String sConfigURI)
Construct a connection factory based on the specified configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection()
Create a connection to a Coherence data grid.
|
Connection |
createConnection(ClassLoader loader)
Create a connection to a Coherence data grid.
|
Connection |
createConnection(ConnectionFactory.ConnectionSpec connectionSpec)
Create a connection to a Coherence data grid using the specified
connection specification. |
Connection |
createConnection(String sServiceName)
Create a connection to a Coherence data grid.
|
Connection |
createConnection(String sServiceName, ClassLoader loader)
Create a connection to a Coherence data grid.
|
public DefaultConnectionFactory()
public DefaultConnectionFactory(String sConfigURI)
sConfigURI - the configuration URIpublic Connection createConnection()
createConnection in interface ConnectionFactorypublic Connection createConnection(String sServiceName)
createConnection in interface ConnectionFactorysServiceName - the name of the cache service to be associated with the connection; must be specified in a "transactional-scheme" configuration elementpublic Connection createConnection(ClassLoader loader)
createConnection in interface ConnectionFactoryloader - class loader that should be used to configure the connectionpublic Connection createConnection(String sServiceName, ClassLoader loader)
createConnection in interface ConnectionFactorysServiceName - the name of the cache service to be associated with the connection; must be specified in a "transactional-scheme" configuration elementloader - class loader that should be used to configure the connectionpublic Connection createConnection(ConnectionFactory.ConnectionSpec connectionSpec)
connection specification. The returned connection is associated with a cache service specified by the service name in the given connection specification. All caches obtained through this connection will be associated with this cache service.createConnection in interface ConnectionFactoryconnectionSpec - the connection specification