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 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 in xml element format used 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
      • 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