Interface ConnectionFactory.ConnectionSpec
-
- All Known Implementing Classes:
ConnectionSpecImpl
- Enclosing interface:
- ConnectionFactory
public static interface ConnectionFactory.ConnectionSpecThe 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 ClassLoadergetClassLoader()Get the class loader for which the configuration should be used.StringgetConfigURI()Get the configuration URI used to create the connection.IsolationgetIsolation()Get thetransaction isolationfor this connection.StringgetServiceName()Get the name of the service that will be associated with any connection obtained with this connection spec.intgetTimeout()Obtain the transaction timeout for this connection.XmlElementgetXmlConfig()Get the cache configuration inxml element formatused to create the connection.booleanisAutoCommit()Get the auto commit option.booleanisEager()Get the eager mode value.
-
-
-
Method Detail
-
getServiceName
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
String getConfigURI()
Get the configuration URI used to create the connection.- Returns:
- the configuration URI
-
getXmlConfig
XmlElement getXmlConfig()
Get the cache configuration inxml element formatused to create the connection.- Returns:
- the cache configuration in xml element format
-
getClassLoader
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 thetransaction isolationfor 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
-
-