Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.coherence.transaction
Class DefaultConnectionFactory

java.lang.Object
  extended by com.tangosol.coherence.transaction.DefaultConnectionFactory

All Implemented Interfaces:
ConnectionFactory

public class DefaultConnectionFactory
extends Object
implements ConnectionFactory

Connection factory used to obtain a logical connection to a Coherence cache service.

Since:
Coherence 3.6
Author:
tb 2009.09.13

Constructor Summary
DefaultConnectionFactory()
          Construct a connection factory.
DefaultConnectionFactory(String sConfigURI)
          Construct a connection factory based on the specified configuration.

 

Method Summary
 Connection createConnection()
          Create a connection to the default transactional Coherence cache service.
 Connection createConnection(ClassLoader loader)
          Create a connection to the default transactional Coherence cache service.
 Connection createConnection(String sServiceName)
          Create a connection to a Coherence cache service identified by the given service name.
 Connection createConnection(String sServiceName, ClassLoader loader)
          Create a connection to a Coherence cache service identified by the given service name.

 

Constructor Detail

DefaultConnectionFactory

public DefaultConnectionFactory()
Construct a connection factory.

DefaultConnectionFactory

public DefaultConnectionFactory(String sConfigURI)
Construct a connection factory based on the specified configuration.
Parameters:
sConfigURI - the configuration URI

Method Detail

createConnection

public Connection createConnection()
Create a connection to the default transactional Coherence cache service.
Specified by:
createConnection in interface ConnectionFactory
Returns:
the Connection object

createConnection

public Connection createConnection(String sServiceName)
Create a connection to a Coherence cache service identified by the given service name.
Specified by:
createConnection in interface ConnectionFactory
Parameters:
sServiceName - the name of the cache service to be associated with the connection; must be specified in a "transactional-scheme" configuration element
Returns:
the Connection object

createConnection

public Connection createConnection(ClassLoader loader)
Create a connection to the default transactional Coherence cache service.
Specified by:
createConnection in interface ConnectionFactory
Parameters:
loader - class loader which should be used to configure the connection
Returns:
the Connection object

createConnection

public Connection createConnection(String sServiceName,
                                   ClassLoader loader)
Create a connection to a Coherence cache service identified by the given service name.
Specified by:
createConnection in interface ConnectionFactory
Parameters:
sServiceName - the name of the cache service to be associated with the connection; must be specified in a "transactional-scheme" configuration element
loader - class loader which should be used to configure the connection
Returns:
the Connection object

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.