Class ThinClientConfiguration


  • public class ThinClientConfiguration
    extends Object
    Server-side thin-client configuration. This configuration related only to lightweight (thin) Ignite clients and not related to ODBC and JDBC clients.
    • Field Detail

      • DFLT_MAX_ACTIVE_TX_PER_CONNECTION

        public static final int DFLT_MAX_ACTIVE_TX_PER_CONNECTION
        Default limit of active transactions count per connection.
        See Also:
        Constant Field Values
      • DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION

        public static final int DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION
        Default limit of active compute tasks per connection.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ThinClientConfiguration

        public ThinClientConfiguration()
        Creates thin-client configuration with all default values.
      • ThinClientConfiguration

        public ThinClientConfiguration​(ThinClientConfiguration cfg)
        Creates thin-client configuration by copying all properties from given configuration.
        Parameters:
        cfg - Configuration to copy.
    • Method Detail

      • getMaxActiveTxPerConnection

        public int getMaxActiveTxPerConnection()
        Returns:
        Active transactions count per connection limit.
      • setMaxActiveTxPerConnection

        public ThinClientConfiguration setMaxActiveTxPerConnection​(int maxActiveTxPerConn)
        Sets active transactions count per connection limit.
        Parameters:
        maxActiveTxPerConn - Active transactions count per connection limit.
        Returns:
        this for chaining.
      • getMaxActiveComputeTasksPerConnection

        public int getMaxActiveComputeTasksPerConnection()
        Gets active compute tasks per connection limit.
        Returns:
        True if compute is enabled for thin client.
      • setMaxActiveComputeTasksPerConnection

        public ThinClientConfiguration setMaxActiveComputeTasksPerConnection​(int maxActiveComputeTasksPerConn)
        Sets active compute tasks per connection limit. Value 0 means that compute grid functionality is disabled for thin clients.
        Parameters:
        maxActiveComputeTasksPerConn - Active compute tasks per connection limit.
        Returns:
        this for chaining.
      • sendServerExceptionStackTraceToClient

        public boolean sendServerExceptionStackTraceToClient()
        Returns:
        If true sends a server exception stack to the client side.
      • setServerToClientExceptionStackTraceSending

        public ThinClientConfiguration setServerToClientExceptionStackTraceSending​(boolean sendStackTrace)
        Parameters:
        sendStackTrace - If true sends a server exception stack to the client side.
        Returns:
        this for chaining.