Interface ConnectionFactory
-
- All Known Implementing Classes:
DefaultConnectionFactory
public interface ConnectionFactory
A factory for connections to a Coherence data grid.- Since:
- Coherence 3.6
- Author:
- tb 2009.05.19
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConnectionFactory.ConnectionSpec
The connection spec is used to pass connection properties to connection factory during a connection request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
createConnection()
Create a connection to a Coherence data grid.Connection
createConnection(ConnectionFactory.ConnectionSpec connectionSpec)
Create a connection to a Coherence data grid using the specifiedconnection specification
.Connection
createConnection(ClassLoader loader)
Create a connection to a Coherence data grid.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.
-
-
-
Method Detail
-
createConnection
Connection createConnection()
Create a connection to a Coherence data grid. The returned connection is associated with a default cache service. All caches obtained through this connection will be associated with this default cache service.- Returns:
- a connection to a Coherence data grid
-
createConnection
Connection createConnection(String sServiceName)
Create a connection to a Coherence data grid. The returned connection is associated with a cache service specified by the given service name. All caches obtained through this connection will be associated with this cache service.- Parameters:
sServiceName
- the name of the cache service to be associated with the connection; must be specified in a "transactional-scheme" configuration element- Returns:
- a connection to a Coherence data grid
-
createConnection
Connection createConnection(ClassLoader loader)
Create a connection to a Coherence data grid. The returned connection is associated with a default cache service. All caches obtained through this connection will be associated with this default cache service.- Parameters:
loader
- class loader that should be used to configure the connection- Returns:
- a connection to a Coherence data grid
-
createConnection
Connection createConnection(String sServiceName, ClassLoader loader)
Create a connection to a Coherence data grid. The returned connection is associated with a cache service specified by the given service name. All caches obtained through this connection will be associated with this cache service.- Parameters:
sServiceName
- 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 connection- Returns:
- a connection to a Coherence data grid
-
createConnection
Connection createConnection(ConnectionFactory.ConnectionSpec connectionSpec)
Create a connection to a Coherence data grid using the specifiedconnection 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.- Parameters:
connectionSpec
- the connection specification- Returns:
- a connection to a Coherence data grid
-
-