Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.transaction
Interface ConnectionFactory.ConnectionSpec

All Known Implementing Classes:
ConnectionSpecImpl
Enclosing interface:
ConnectionFactory

public static interface ConnectionFactory.ConnectionSpec

The connection spec is used to pass connection properties to connection factory during a connection request.


Method Summary
 java.lang.ClassLoader getClassLoader()
          Get the class loader for which the configuration should be used.
 java.lang.String getConfigURI()
          Get the configuration URI used to create the connection.
 Isolation getIsolation()
          Get the transaction isolation for this connection.
 java.lang.String getServiceName()
          Get the name of the service that will be associated with any connection obtained with this connection spec.
 int getTimeout()
          Obtain the transaction timeout for this connection.
 XmlElement getXmlConfig()
          Get the cache configuration in xml element format used to create the connection.
 boolean isAutoCommit()
          Get the auto commit option.
 boolean isEager()
          Get the eager mode value.

 

Method Detail

getServiceName

java.lang.String getServiceName()
Get the name of the service that will be associated with any connection obtained with this connection spec.
Returns:
the name of the service

getConfigURI

java.lang.String getConfigURI()
Get the configuration URI used to create the connection.
Returns:
the configuration URI

getXmlConfig

XmlElement getXmlConfig()
Get the cache configuration in xml element format used to create the connection.
Returns:
the cache configuration in xml element format

getClassLoader

java.lang.ClassLoader getClassLoader()
Get the class loader for which the configuration should be used.
Returns:
the class loader for which the configuration should be used

isAutoCommit

boolean isAutoCommit()
Get the auto commit option. This value determines how the auto commit option will be set on the Coherence connection when a connection is acquired from the adapter.
Returns:
the auto commit option

getIsolation

Isolation getIsolation()
Get the transaction isolation for this connection.
Returns:
the transaction isolation

isEager

boolean isEager()
Get the eager mode value. The eager mode value determines whether or not operations will be performed eagerly. A value of false means that cache operations will potentially be delayed and submitted in batch form.
Returns:
the eager mode

getTimeout

int getTimeout()
Obtain the transaction timeout for this connection.
Returns:
the timeout in seconds

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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