public class ThinClientConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION
Default limit of active compute tasks per connection.
|
static int |
DFLT_MAX_ACTIVE_TX_PER_CONNECTION
Default limit of active transactions count per connection.
|
Constructor and Description |
---|
ThinClientConfiguration()
Creates thin-client configuration with all default values.
|
ThinClientConfiguration(ThinClientConfiguration cfg)
Creates thin-client configuration by copying all properties from given configuration.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxActiveComputeTasksPerConnection()
Gets active compute tasks per connection limit.
|
int |
getMaxActiveTxPerConnection()
Gets active transactions count per connection limit.
|
boolean |
sendServerExceptionStackTraceToClient()
Gets a value indicating whether full exception stack trace should be sent to the client.
|
ThinClientConfiguration |
sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
Deprecated.
Use
setSendServerExceptionStackTraceToClient(boolean) instead. |
ThinClientConfiguration |
setMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)
Sets active compute tasks per connection limit.
|
ThinClientConfiguration |
setMaxActiveTxPerConnection(int maxActiveTxPerConn)
Sets active transactions count per connection limit.
|
ThinClientConfiguration |
setSendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
Sets a value indicating whether full exception stack trace should be sent to the client.
|
String |
toString() |
public static final int DFLT_MAX_ACTIVE_TX_PER_CONNECTION
public static final int DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION
public ThinClientConfiguration()
public ThinClientConfiguration(ThinClientConfiguration cfg)
cfg
- Configuration to copy.public int getMaxActiveTxPerConnection()
public ThinClientConfiguration setMaxActiveTxPerConnection(int maxActiveTxPerConn)
this
for chaining.public int getMaxActiveComputeTasksPerConnection()
True
if compute is enabled for thin client.public ThinClientConfiguration setMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)
0
means that compute grid functionality is disabled for thin clients.this
for chaining.public boolean sendServerExceptionStackTraceToClient()
true
sends a server exception stack to the client side; otherwise, sends only exception message.@Deprecated public ThinClientConfiguration sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
setSendServerExceptionStackTraceToClient(boolean)
instead.sendServerExcStackTraceToClient
- If true
sends full server exception stack to the client side;
otherwise, sends only exception message.this
for chaining.public ThinClientConfiguration setSendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
sendServerExcStackTraceToClient
- If true
sends full server exception stack to the client side;
otherwise, sends only exception message.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024