Package org.apache.ignite.configuration
Class ThinClientConfiguration
- java.lang.Object
- 
- org.apache.ignite.configuration.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 SummaryFields Modifier and Type Field Description static intDFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTIONDefault limit of active compute tasks per connection.static intDFLT_MAX_ACTIVE_TX_PER_CONNECTIONDefault limit of active transactions count per connection.
 - 
Constructor SummaryConstructors Constructor Description ThinClientConfiguration()Creates thin-client configuration with all default values.ThinClientConfiguration(ThinClientConfiguration cfg)Creates thin-client configuration by copying all properties from given configuration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetMaxActiveComputeTasksPerConnection()Gets active compute tasks per connection limit.intgetMaxActiveTxPerConnection()booleansendServerExceptionStackTraceToClient()ThinClientConfigurationsendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)Deprecated.UsesetServerToClientExceptionStackTraceSending(boolean)instead.ThinClientConfigurationsetMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)Sets active compute tasks per connection limit.ThinClientConfigurationsetMaxActiveTxPerConnection(int maxActiveTxPerConn)Sets active transactions count per connection limit.ThinClientConfigurationsetServerToClientExceptionStackTraceSending(boolean sendStackTrace)StringtoString()
 
- 
- 
- 
Field Detail- 
DFLT_MAX_ACTIVE_TX_PER_CONNECTIONpublic 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_CONNECTIONpublic 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- 
ThinClientConfigurationpublic ThinClientConfiguration() Creates thin-client configuration with all default values.
 - 
ThinClientConfigurationpublic ThinClientConfiguration(ThinClientConfiguration cfg) Creates thin-client configuration by copying all properties from given configuration.- Parameters:
- cfg- Configuration to copy.
 
 
- 
 - 
Method Detail- 
getMaxActiveTxPerConnectionpublic int getMaxActiveTxPerConnection() - Returns:
- Active transactions count per connection limit.
 
 - 
setMaxActiveTxPerConnectionpublic ThinClientConfiguration setMaxActiveTxPerConnection(int maxActiveTxPerConn) Sets active transactions count per connection limit.- Parameters:
- maxActiveTxPerConn- Active transactions count per connection limit.
- Returns:
- thisfor chaining.
 
 - 
getMaxActiveComputeTasksPerConnectionpublic int getMaxActiveComputeTasksPerConnection() Gets active compute tasks per connection limit.- Returns:
- Trueif compute is enabled for thin client.
 
 - 
setMaxActiveComputeTasksPerConnectionpublic ThinClientConfiguration setMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn) Sets active compute tasks per connection limit. Value0means that compute grid functionality is disabled for thin clients.- Parameters:
- maxActiveComputeTasksPerConn- Active compute tasks per connection limit.
- Returns:
- thisfor chaining.
 
 - 
sendServerExceptionStackTraceToClientpublic boolean sendServerExceptionStackTraceToClient() - Returns:
- If truesends a server exception stack to the client side.
 
 - 
sendServerExceptionStackTraceToClient@Deprecated public ThinClientConfiguration sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient) Deprecated.UsesetServerToClientExceptionStackTraceSending(boolean)instead.- Parameters:
- sendServerExcStackTraceToClient- If- truesends a server exception stack to the client side.
- Returns:
- thisfor chaining.
 
 - 
setServerToClientExceptionStackTraceSendingpublic ThinClientConfiguration setServerToClientExceptionStackTraceSending(boolean sendStackTrace) - Parameters:
- sendStackTrace- If- truesends a server exception stack to the client side.
- Returns:
- thisfor chaining.
 
 
- 
 
-